Fix outdated code check for specific components
This commit is contained in:
parent
8642c451c7
commit
cb302ec396
1 changed files with 5 additions and 1 deletions
|
|
@ -86,7 +86,11 @@ export default function GenericNode({
|
|||
if (!thisNodeTemplate.code) return;
|
||||
const currentCode = thisNodeTemplate.code?.value;
|
||||
const thisNodesCode = data.node!.template?.code?.value;
|
||||
if (currentCode !== thisNodesCode) {
|
||||
const componentsToIgnore = ["Custom Component", "Prompt"];
|
||||
if (
|
||||
currentCode !== thisNodesCode &&
|
||||
!componentsToIgnore.includes(data.node!.display_name)
|
||||
) {
|
||||
setIsOutdated(true);
|
||||
} else {
|
||||
setIsOutdated(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue