update CheckCodeValidity
This commit is contained in:
parent
2055be160a
commit
740cb874c9
1 changed files with 2 additions and 3 deletions
|
|
@ -17,7 +17,6 @@ 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
|
||||
|
|
@ -27,7 +26,7 @@ const useCheckCodeValidity = (
|
|||
const componentsToIgnore = ["CustomComponent", "Prompt"];
|
||||
if (
|
||||
currentCode !== thisNodesCode &&
|
||||
!componentsToIgnore.includes(data.node!.display_name) &&
|
||||
!componentsToIgnore.includes(data.type) &&
|
||||
!(data.node?.edited ?? false)
|
||||
) {
|
||||
setIsOutdated(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue