Everything to ES2020

This commit is contained in:
the-djmaze 2024-04-02 22:24:53 +02:00
parent 84ffe1e552
commit 78178ecc2f
16 changed files with 35 additions and 45 deletions

View file

@ -6,7 +6,7 @@ export class CheckboxComponent {
: ko.observable(!!params.value);
this.enable = ko.isObservable(params.enable) ? params.enable
: ko.observable(undefined === params.enable || !!params.enable);
: ko.observable(params.enable ?? 1);
this.label = params.label;
}