fixes: component deletion fixes

This commit is contained in:
arpitnath 2023-10-17 14:30:00 +05:30
parent 91ff545d4e
commit 0d3567d06b

View file

@ -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)