fix custom component init (#4123)

This commit is contained in:
Thomas Brandého 2024-10-08 09:15:56 -07:00 committed by Masen Furer
parent d750b10c05
commit 475f666998
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -260,7 +260,7 @@ def _validate_library_name(library_name: str | None) -> NameVariants:
# Module name is the snake case.
module_name = "_".join(name_parts)
custom_component_module_dir = f"reflex_{module_name}"
custom_component_module_dir = Path(f"reflex_{module_name}")
console.debug(f"Custom component source directory: {custom_component_module_dir}")
# Use the same name for the directory and the app.