chore: Add early return for CustomComponent in useCheckCodeValidity hook
This commit is contained in:
parent
c9e591a492
commit
2055be160a
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ const useCheckCodeValidity = (
|
|||
!data.node?.template?.code?.value
|
||||
)
|
||||
return;
|
||||
if (data.type === "CustomComponent") return;
|
||||
const thisNodeTemplate = templates[data.type].template;
|
||||
// if the template does not have a code key
|
||||
// return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue