diff --git a/src/fontra/views/editor/editor.js b/src/fontra/views/editor/editor.js index 22076312f..41d9bd612 100644 --- a/src/fontra/views/editor/editor.js +++ b/src/fontra/views/editor/editor.js @@ -3497,7 +3497,10 @@ export class EditorController { if (this.sceneSettings.editLayerName) { viewInfo["editLayerName"] = this.sceneSettings.editLayerName; } - if (Object.keys(this.sceneSettings.editingLayers).length) { + if ( + this.sceneSettings.editingLayers && + Object.keys(this.sceneSettings.editingLayers).length + ) { viewInfo["editingLayers"] = this.sceneSettings.editingLayers; }