Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 95e3c49d authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

fix node id

parent 3672cd38
Branches
No related tags found
1 merge request!47Draft: Resolve "Adding undo/redo"
......@@ -100,7 +100,8 @@ export function updateElementValue(elementId: string, nodeId: string, valueId: s
let id, formType, formValues;
if(nodeId === elementId) {
({id, formType, formValues} = node.data);
id = node.id;
({formType, formValues} = node.data);
} else {
const element = node.data.elements.find(e => e.id === elementId);
({id, formType, formValues} = element);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment