Skip to content

Commit

Permalink
fixed note deletion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
framefactory committed Jul 22, 2019
1 parent c530ac4 commit 5f68021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/client/ui/story/NotesPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ export default class NotesPanel extends NodeView
{
const index = this.notes.indexOf(this.activeNote);
if (index >= 0) {
this.notes.slice(index, 1);
this.notes.splice(index, 1);
}

this.activeNote = this.notes[index] || null;
this.requestUpdate();
}

protected onActiveNode(previous: NVNode, next: NVNode)
Expand Down

0 comments on commit 5f68021

Please sign in to comment.