fix: note comparison in template

This commit is contained in:
Mo Bitar
2020-04-21 13:55:16 -05:00
parent 35434f8af3
commit 9023f76417
13 changed files with 38 additions and 42 deletions

View File

@@ -102,7 +102,7 @@
)
.note(
ng-repeat='note in self.state.renderedNotes track by note.uuid'
ng-class="{'selected' : self.activeEditorNote == note}"
ng-class="{'selected' : self.activeEditorNote.uuid == note.uuid}"
ng-click='self.selectNote(note)'
)
.note-flags(ng-show='self.noteFlags[note.uuid].length > 0')