Skip to content

Commit

Permalink
Don't do things when there's no items
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 27, 2024
1 parent cfd1ece commit 909ebff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fontra/views/editor/panel-designspace-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 909ebff

Please sign in to comment.