Make sure only note is not dummy before removing

This commit is contained in:
Mo Bitar
2019-02-10 17:36:52 -06:00
parent 7a61b243ce
commit 1e01075aeb

View File

@@ -81,7 +81,7 @@ angular.module('app')
this.reloadNotes = function() {
let notes = this.tag.notes;
if(notes.length > 0 && this.selectedNote && this.selectedNote.dummy) {
if(notes.length > 0 && notes[0].dummy == false && this.selectedNote && this.selectedNote.dummy) {
// remove dummy
modelManager.removeItemLocally(this.selectedNote);
notes = _.pull(notes, this.selectedNote);