diff --git a/frontend/src/Editor/Inspector/Inspector.jsx b/frontend/src/Editor/Inspector/Inspector.jsx index f08f02424b..b98ae05050 100644 --- a/frontend/src/Editor/Inspector/Inspector.jsx +++ b/frontend/src/Editor/Inspector/Inspector.jsx @@ -99,13 +99,6 @@ export const Inspector = ({ componentNameRef.current = newComponentName; }, [newComponentName]); - useEffect(() => { - return () => { - handleComponentNameChange(componentNameRef.current); - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - const validateComponentName = (name) => { const isValid = !Object.values(allComponents) .map((component) => component.component.name)