From a8e2c2901b72946a246af5d69680c72de4449108 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 22 Jan 2025 23:09:56 +0200 Subject: [PATCH] fix(geomap): error in creating empty map --- src/public/app/widgets/type_widgets/geo_map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index eb54dd489..a36544217 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); }