From 2055be160a613df5e20fbf1ef9012f2ea2d386f9 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sat, 8 Jun 2024 11:55:05 -0300 Subject: [PATCH] chore: Add early return for CustomComponent in useCheckCodeValidity hook --- src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx b/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx index 4cbfbd8df..833ece0f5 100644 --- a/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx +++ b/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx @@ -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