Skip to content

Commit

Permalink
Merge pull request #2609 from aliraza556/fix/node-edit-state-sync
Browse files Browse the repository at this point in the history
Fix: Real-time Node State Update After Editing Properties
  • Loading branch information
Rassl authored Jan 13, 2025
2 parents 891ad69 + 578e7c8 commit 73577f0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export const Body = () => {
const formData: FormData = getValues()

const nodeData = {
name: formData.name,
image_url: formData.image_url,
properties: formData.properties,
}

Expand All @@ -107,7 +109,10 @@ export const Body = () => {

const { updateNode } = useDataStore.getState()

updateNode({ ...node, ...nodeData } as unknown as NodeExtended)
updateNode({
...node,
...nodeData,
} as NodeExtended)

closeHandler()
} catch (error) {
Expand Down

0 comments on commit 73577f0

Please sign in to comment.