-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Node Update API Payload Structure and Data Handling #2596
Fix: Node Update API Payload Structure and Data Handling #2596
Conversation
Hi @tomsmith8, @Rassl, Please review this PR. |
src/stores/useDataStore/index.ts
Outdated
updateNode: (updatedNode) => { | ||
console.info(updatedNode) | ||
updateNode: (updatedNode: NodeExtended) => { | ||
set((state) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { nodesNormalized } = get()
nodesNormalized.set(...)
set({ nodeNormalized })
dm me if I missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rassl Please review again
e7c0f88
to
ddc3109
Compare
@aliraza556 when I change the value, the new key value pairs are not passed into the PUT request. |
all the properties with their new value from the modal should be passed into the properties object. And the frontend state should be updated |
Ticket №: #2593
closes #2593
Evidance:
https://www.loom.com/share/152eaeb867a44eef87c878dc50c12435