fix: tag placeholder align (#819)

* fix: padding in navigation no-tag-placeholder

* fix: lint-staged was disabled

* fix: make findArray typesafe
This commit is contained in:
Laurent Senta
2022-01-24 15:50:41 +01:00
committed by GitHub
parent 829a240f63
commit 86b38e1041
3 changed files with 7 additions and 4 deletions

View File

@@ -95,7 +95,10 @@ export class NotesViewState {
/** A tag could have changed its relationships, so we need to reload the filter */
this.reloadNotesDisplayOptions();
this.reloadNotes();
if (findInArray(tags, 'uuid', this.appState.selectedTag?.uuid)) {
if (
this.appState.selectedTag &&
findInArray(tags, 'uuid', this.appState.selectedTag.uuid)
) {
/** Tag title could have changed */
this.reloadPanelTitle();
}