From 909ebff25f2c250e10fafb5e317bd5aaddc91f7d Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 27 Nov 2024 08:59:47 +0100 Subject: [PATCH] Don't do things when there's no items --- src/fontra/views/editor/panel-designspace-navigation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fontra/views/editor/panel-designspace-navigation.js b/src/fontra/views/editor/panel-designspace-navigation.js index 1ffe70859..19b7c4b8e 100644 --- a/src/fontra/views/editor/panel-designspace-navigation.js +++ b/src/fontra/views/editor/panel-designspace-navigation.js @@ -876,6 +876,10 @@ export default class DesignspaceNavigationPanel extends Panel { } async _updateEditingStatus() { + if (!this.sourcesList.items.length) { + return; + } + const selectedItem = this.sourcesList.getSelectedItem(); // if no selected item: