fix(geomap): error in creating empty map

This commit is contained in:
Elian Doran 2025-01-22 23:09:56 +02:00
parent 7a3a5141af
commit a8e2c2901b
No known key found for this signature in database

View File

@ -138,7 +138,7 @@ export default class GeoMapTypeWidget extends TypeWidget {
const blob = await this.note.getBlob(); const blob = await this.note.getBlob();
let parsedContent: MapData = {}; let parsedContent: MapData = {};
if (blob) { if (blob && blob.content) {
parsedContent = JSON.parse(blob.content); parsedContent = JSON.parse(blob.content);
} }