reformat board data

This commit is contained in:
Ophir LOJKINE 2021-06-11 00:15:16 +02:00
parent 7924832503
commit b4b4072486

View file

@ -111,13 +111,13 @@ class BoardData {
var newobj = JSON.parse(JSON.stringify(obj));
newobj.id = newid;
if (newobj._children) {
for (var child of newobj._children) {
child.parent = newid;
}
for (var child of newobj._children) {
child.parent = newid;
}
}
this.board[newid] = newobj;
} else {
log("Copied object does not exist in board.", {object: id});
} else {
log("Copied object does not exist in board.", { object: id });
}
this.delaySave();
}