Skip to content

Build your personal knowledge base with Trilium Notes

fix(views/geomap): unable to change note type to geomap

Elian Doran68e258f23b8d
diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties.ts b/apps/client/src/widgets/ribbon_widgets/book_properties.ts
index f552bc280a..655512f9ef 100644
--- a/apps/client/src/widgets/ribbon_widgets/book_properties.ts
+++ b/apps/client/src/widgets/ribbon_widgets/book_properties.ts
@@ -127,7 +127,7 @@ export default class BookPropertiesWidget extends NoteContextAwareWidget {
return;
}
- if (!["list", "grid", "calendar", "table"].includes(type)) {
+ if (!["list", "grid", "calendar", "table", "geoMap"].includes(type)) {
throw new Error(t("book_properties.invalid_view_type", { type }));
}