feat(views/geomap): display even if empty

This commit is contained in:
Elian Doran 2025-07-06 11:22:49 +03:00
parent 7abb67e737
commit 54063b97ad
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;