mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 06:01:40 +08:00
fix(geomap): error in creating empty map
This commit is contained in:
parent
7a3a5141af
commit
a8e2c2901b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user