mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 14:34:20 +00:00
reformat board data
This commit is contained in:
parent
7924832503
commit
b4b4072486
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue