[bug] fix adding new group via editing link

This commit is contained in:
zombieFox 2019-10-21 19:26:33 +01:00
parent 0c62bf68c1
commit 07d74ce653

View File

@ -223,7 +223,16 @@ var bookmarks = (function() {
mod.edit = {
link: function(data) {
if (data.position.group.new) {
mod.add.group(data);
mod.add.group({
position: {
origin: null,
destination: data.position.destination.group
},
group: {
name: data.position.group.name,
items: []
}
});
};
var item = JSON.parse(JSON.stringify(data.link));
mod.all[data.position.origin.group].items.splice(data.position.origin.item, 1);