From f4517b250e38d5ef8e2142aaded15a523ee16a78 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 22 Jun 2024 16:59:42 -0300 Subject: [PATCH] refactor: remove Prompt from ignored components list --- src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 af9e0d14e..95d3df77c 100644 --- a/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx +++ b/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx @@ -24,7 +24,7 @@ const useCheckCodeValidity = ( if (!thisNodeTemplate.code) return; const currentCode = thisNodeTemplate.code?.value; const thisNodesCode = data.node!.template?.code?.value; - const componentsToIgnore = ["CustomComponent", "Prompt"]; + const componentsToIgnore = ["CustomComponent"] setIsOutdated( currentCode !== thisNodesCode && !componentsToIgnore.includes(data.type), );