Skip to content

Commit

Permalink
fix: improve connectionType check in Database node display logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-xufei committed Jan 8, 2025
1 parent d5d9431 commit 31f67d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dag/src/nodes/Database.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Database extends NodeType {
fulfill: {
state: {
display:
'{{(!$deps[0].length && $values.attrs.connectionType.includes("source")) ? "visible":"hidden"}}'
'{{(!$deps[0].length && $values.attrs.connectionType && $values.attrs.connectionType.includes("source")) ? "visible":"hidden"}}'
}
}
},
Expand Down Expand Up @@ -538,7 +538,7 @@ export class Database extends NodeType {
fulfill: {
state: {
display:
'{{(!$deps[0].length && $values.attrs.connectionType.includes("source")) ? "visible":"hidden"}}'
'{{(!$deps[0].length && $values.attrs.connectionType && $values.attrs.connectionType.includes("source")) ? "visible":"hidden"}}'
}
}
},
Expand Down

0 comments on commit 31f67d5

Please sign in to comment.