X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fmodule%2FPanel.jsx;h=12d23f718db7d9aa75c9dfb7bc55173635e01a76;hb=0e62bf0b7bdc260e882fd185492939cbaed04d56;hp=72934e5938a8e8641028ab6254904542bc0f067b;hpb=518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6;p=github%2Ffretlink%2Ftime-picker.git 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() { function generateOptions(length, disabledOptions, hideDisabledOptions) { const arr = []; for (let value = 0; value < length; value++) { - if ((disabledOptions && disabledOptions.indexOf(value) < 0) || !hideDisabledOptions) { + if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) { arr.push(value); } }