1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fix for preset options that are outside of any groups (#4285)

This commit is contained in:
Ivan Efimov 2024-12-31 09:54:31 -06:00 committed by GitHub
parent 937564aafe
commit 7688c452c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,7 +201,7 @@ export default class PresetsDetailedDialog {
const groupIndex = selectedOptionKey.slice(firstUnderscoreIndex + 1, lastUnderscoreIndex);
const group = this._preset.options[groupIndex];
if (group.isExclusive) {
if (group?.isExclusive) {
// clear all options within group
const valuesWithinGroup = this._domOptionsSelect.find(`optgroup[label="${group.name}"]`)
.children()