Skip to content

Commit 4d23108

Browse files
committed
unwrap original flowdata also before save comparison
1 parent 40c7635 commit 4d23108

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/components/atoms/util.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,16 @@ export const isSaveNeeded = (flowData, flowDataDraft) => {
9191
return { id, type, data, position };
9292
};
9393

94-
const nodes = flowData.nodes.map((e) => unwrapNode(e));
94+
const nodes = flowData.nodes.map((node) => {
95+
if (node.type === 'outputNode' && node.data.output) {
96+
const { ['output']: _, ...data } = node.data;
97+
return unwrapNode({
98+
...node,
99+
data,
100+
});
101+
}
102+
return unwrapNode(node);
103+
});
95104
const nodesDraft = flowDataDraft.nodes.map((node) => {
96105
if (node.type === 'outputNode' && node.data.output) {
97106
const { ['output']: _, ...data } = node.data;

0 commit comments

Comments
 (0)