fix(popup_editor): collections being displayed under a full empty screen

This commit is contained in:
Elian Doran
2025-07-11 10:47:06 +03:00
parent 8343a5d1dd
commit ec7414b174
3 changed files with 2 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ export default class NoteListWidget extends NoteContextAwareWidget {
return false;
}
if (this.displayOnlyCollections) {
if (this.displayOnlyCollections && this.note?.type !== "book") {
const viewType = this.note?.getLabelValue("viewType");
if (!viewType || ["grid", "list"].includes(viewType)) {
return false;