Fix issue where removing a note causes next selected note to trigger save

This commit is contained in:
Mo Bitar
2019-10-08 12:04:50 -05:00
parent 9be8d11fea
commit f7d92df273
2 changed files with 35 additions and 15 deletions

View File

@@ -184,9 +184,7 @@ angular.module('app')
}
if(oldNote && oldNote != note) {
if(oldNote.dirty) {
this.saveNote(oldNote);
} else if(oldNote.dummy) {
if(oldNote.dummy) {
this.remove()(oldNote);
}
}