diff options
Diffstat (limited to 'src/module/Panel.jsx')
-rw-r--r-- | src/module/Panel.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index 72934e5..12d23f7 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx | |||
@@ -9,7 +9,7 @@ function noop() { | |||
9 | function generateOptions(length, disabledOptions, hideDisabledOptions) { | 9 | function generateOptions(length, disabledOptions, hideDisabledOptions) { |
10 | const arr = []; | 10 | const arr = []; |
11 | for (let value = 0; value < length; value++) { | 11 | for (let value = 0; value < length; value++) { |
12 | if ((disabledOptions && disabledOptions.indexOf(value) < 0) || !hideDisabledOptions) { | 12 | if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) { |
13 | arr.push(value); | 13 | arr.push(value); |
14 | } | 14 | } |
15 | } | 15 | } |