Skip to content

Commit 98a6a57

Browse files
committed
Add check
1 parent 32a485d commit 98a6a57

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,9 @@ class Header {
570570
}
571571
const activeSettingsItem = this.levels.find(level => level.number === this.currentLevel.number);
572572

573-
return { icon: activeSettingsItem.svg };
573+
if (activeSettingsItem) {
574+
return { icon: activeSettingsItem.svg };
575+
}
574576
}
575577
}
576578

0 commit comments

Comments
 (0)