Skip to content

Commit

Permalink
fix: broken block update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
heypoom committed Dec 17, 2023
1 parent 3eebdcc commit d734cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canvas/src/store/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const syncBlockData = (block: { id: number; data: BlockTypeMap }) => {
updateNode(block.id, (node) => {
const type = node.type

if (type) node.data = { ...node.data, ...block.data[type] }
if (type) node.data = { ...node.data, ...block.data }
})
}

Expand Down

0 comments on commit d734cf7

Please sign in to comment.