chore: Add early return for CustomComponent in useCheckCodeValidity hook

This commit is contained in:
anovazzi1 2024-06-08 11:55:05 -03:00
commit 2055be160a

View file

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