Skip to content

Commit

Permalink
Fix bug with null value
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Dec 10, 2024
1 parent 9333106 commit 855804f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fontra/views/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 855804f

Please sign in to comment.