ioBroker.admin
ioBroker.admin copied to clipboard
[bug]: Deselecting all weekdays in a cron expression (simple view) crashes the GUI
No existing issues.
- [X] There is no existing issue for my problem.
Describe the bug
When deselecting all weekdays in a the simple dialog for a cron expression the GUI crashes.
To Reproduce
- Open the settings dialog of an adapter that has a cron field, e.g. klf200 adapter.
- Click '...' to open the dialog.
- Choose Simple dialog.
- Uncheck all weekdays.
- After unchecking the last weekday the GUI crashes.
Expected behavior
The GUI shouldn't crash. Probably it should either display a message to the user that this is an invalid cron expression or disable the checkbox if there is only one left (whichever is easier to implement).
Screenshots & Logfiles
console.ts:40 Error: Expression has only 4 parts. At least 5 parts are required.
(anonymous) @ console.ts:40
co @ react-dom.production.min.js:188
a.componentDidCatch.t.callback @ react-dom.production.min.js:189
Wa @ react-dom.production.min.js:156
ki @ react-dom.production.min.js:260
bi @ react-dom.production.min.js:259
yi @ react-dom.production.min.js:258
(anonymous) @ react-dom.production.min.js:282
ws @ react-dom.production.min.js:280
is @ react-dom.production.min.js:272
Hl @ react-dom.production.min.js:127
cs @ react-dom.production.min.js:273
Le @ react-dom.production.min.js:52
Qr @ react-dom.production.min.js:109
qn @ react-dom.production.min.js:74
$n @ react-dom.production.min.js:73
r @ helpers.ts:98
Adapter version
7.1.5
js-controller version
5.0.19
Node version
20.17.0
Operating system
docker (official image - v10.0.0)
Additional context
No response