Skip to content

Commit

Permalink
Undo format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Jan 8, 2025
1 parent f63cbe0 commit 3c6ab9c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,17 @@ const FormModal: React.FC<{
connect(parent, data, { before });
} else {
const parsedData = parseFormValues(Object.entries(data));
console.log("parsedData", parsedData);
const parsedChildren =
children?.map((o: any) =>
parseFormValues(Object.entries(o)),
) || undefined;

if (handleDelete) {
console.log("updating node", parsedData, parsedChildren);
updateNode(
{ id, ...parsedData },
{ children: parsedChildren },
);
} else {
console.log("adding node");
addNode(parsedData, {
children: parsedChildren,
parent,
Expand Down

0 comments on commit 3c6ab9c

Please sign in to comment.