Skip to content

Commit

Permalink
MCR-3034 fix move categories
Browse files Browse the repository at this point in the history
fix categories couldn't be moved to a certain position
  • Loading branch information
Mewel committed Jan 31, 2024
1 parent 2155f3e commit 592ce8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ return declare("mycore.classification.LazyLoadingTree", [ContentPane, Evented, _
onDndDrop: function (deferred, args) {
let source = args[0];
let nodes = args[1];
let parent = source.current.item;
let items = nodes
.map(node => source.getItem(node.id))
.map(sourceItem => sourceItem.data.item);
let parent = this.tree.model.getParent(items[0]);
this.tree.model.resolveChildren(parent, () => {
for (let item of items) {
on.emit(this, "itemMoved", {
Expand Down

0 comments on commit 592ce8c

Please sign in to comment.