mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fixes: component deletion fixes
This commit is contained in:
parent
91ff545d4e
commit
0d3567d06b
1 changed files with 0 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue