mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Merge pull request #7926 from ToolJet/appdef/component-name-delete
[appdef] fixes: component deletion fixes
This commit is contained in:
commit
2b2e8643ee
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