Skip to content
Snippets Groups Projects
Commit 9f4c9323 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

bugfix: skip move request when target = source

parent 7a97f90a
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,10 @@ export default class CommanderComponent extends Component {
'id': this.args.node.id
}
}
if (nodes_move_data.source_parent.id == nodes_move_data.target_parent.id) {
console.log('Source same as target. Nothing to do.');
return;
}
this.requests.nodesMove(nodes_move_data);
} else if (data['application/x.desktop']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment