Skip to content

Commit

Permalink
Fix default values not being added correctly on load (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Mar 9, 2024
1 parent 868d6d4 commit dc1cd6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/renderer/contexts/GlobalNodeState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,11 @@ export const GlobalProvider = memo(
...node.data,
inputData: {
...schemata.getDefaultInput(node.data.schemaId),
...node.data.inputData,
...Object.fromEntries(
Object.entries(node.data.inputData).filter(
([, v]) => v != null
)
),
},
},
};
Expand Down

0 comments on commit dc1cd6d

Please sign in to comment.