Skip to content

Build your personal knowledge base with Trilium Notes

fix(geomap): error in creating empty map

Elian Dorana8e2c2901b72
diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts
index eb54dd4899..a36544217e 100644
--- a/src/public/app/widgets/type_widgets/geo_map.ts
+++ b/src/public/app/widgets/type_widgets/geo_map.ts
@@ -138,7 +138,7 @@ export default class GeoMapTypeWidget extends TypeWidget {
const blob = await this.note.getBlob();
let parsedContent: MapData = {};
- if (blob) {
+ if (blob && blob.content) {
parsedContent = JSON.parse(blob.content);
}