fix(web): issue with hide pinned and hide protected not having effect

This commit is contained in:
Mo
2022-10-26 06:45:45 -05:00
parent 350fbbd74d
commit 55296dcc77

View File

@@ -491,14 +491,14 @@ export class ItemListController
this.application.getPreference(PrefKey.NotesShowTrashed, PrefDefaults[PrefKey.NotesShowTrashed]),
)
newDisplayOptions.includePinned = useBoolean(
!selectedTag?.preferences?.hidePinned,
!this.application.getPreference(PrefKey.NotesHidePinned, PrefDefaults[PrefKey.NotesHidePinned]),
newDisplayOptions.includePinned = !useBoolean(
selectedTag?.preferences?.hidePinned,
this.application.getPreference(PrefKey.NotesHidePinned, PrefDefaults[PrefKey.NotesHidePinned]),
)
newDisplayOptions.includeProtected = useBoolean(
!selectedTag?.preferences?.hideProtected,
!this.application.getPreference(PrefKey.NotesHideProtected, PrefDefaults[PrefKey.NotesHideProtected]),
newDisplayOptions.includeProtected = !useBoolean(
selectedTag?.preferences?.hideProtected,
this.application.getPreference(PrefKey.NotesHideProtected, PrefDefaults[PrefKey.NotesHideProtected]),
)
newWebDisplayOptions.hideNotePreview = useBoolean(