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

bug fix when renaming a node

parent 83a4daba
Branches
No related tags found
No related merge requests found
......@@ -34,14 +34,10 @@ export default class RenameNodeComponent extends BaseComponent {
@action
onSubmit() {
this.store.findRecord('node', this.node.id).then(
(node) => {
node.title = this.title;
node.save();
this.args.onClose();
this.title = '';
});
this.node.title = this.title;
this.node.save();
this.args.onClose();
this.title = '';
}
@action
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment