From 0d3567d06bfc9c7d38dc345f8e905fe4b081d749 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 17 Oct 2023 14:30:00 +0530 Subject: [PATCH] fixes: component deletion fixes --- frontend/src/Editor/Inspector/Inspector.jsx | 7 ------- 1 file changed, 7 deletions(-) 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)