From 7688c452c60969a8d8536d0e473edcbbabb62a2f Mon Sep 17 00:00:00 2001 From: Ivan Efimov <2925027+limonspb@users.noreply.github.com> Date: Tue, 31 Dec 2024 09:54:31 -0600 Subject: [PATCH] Fix for preset options that are outside of any groups (#4285) --- src/tabs/presets/DetailedDialog/PresetsDetailedDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabs/presets/DetailedDialog/PresetsDetailedDialog.js b/src/tabs/presets/DetailedDialog/PresetsDetailedDialog.js index 77cefb72..908c1c50 100644 --- a/src/tabs/presets/DetailedDialog/PresetsDetailedDialog.js +++ b/src/tabs/presets/DetailedDialog/PresetsDetailedDialog.js @@ -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()