Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(views/geomap): display even if empty
Elian Doran54063b97adea
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.tsindex 020817073e..75c66b1bcf 100644--- a/apps/client/src/components/note_context.ts+++ b/apps/client/src/components/note_context.ts@@ -326,7 +326,7 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">}// Some book types must always display a note list, even if no children.- if (["calendar", "table"].includes(note.getLabelValue("viewType") ?? "")) {+ if (["calendar", "table", "geoMap"].includes(note.getLabelValue("viewType") ?? "")) {return true;}diff --git a/apps/client/src/widgets/type_widgets/book.ts b/apps/client/src/widgets/type_widgets/book.tsindex 66d4764644..cc8323e1f4 100644--- a/apps/client/src/widgets/type_widgets/book.ts+++ b/apps/client/src/widgets/type_widgets/book.ts@@ -47,6 +47,7 @@ export default class BookTypeWidget extends TypeWidget {switch (this.note?.getAttributeValue("label", "viewType")) {case "calendar":case "table":+ case "geoMap":return false;default:return true;