mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
refactor(time_selector): simplify setting of includedTimeScales
This commit is contained in:
parent
2d968b8e9c
commit
0332ade13c
@ -52,7 +52,7 @@ export default class TimeSelector extends OptionsWidget {
|
||||
this.widgetLabelId = options.widgetLabelId;
|
||||
this.optionValueId = options.optionValueId;
|
||||
this.optionTimeScaleId = options.optionTimeScaleId;
|
||||
this.includedTimeScales = !options.includedTimeScales ? new Set(["seconds", "minutes", "hours", "days"]) : options.includedTimeScales;
|
||||
this.includedTimeScales = options.includedTimeScales || new Set(["seconds", "minutes", "hours", "days"]);
|
||||
this.minimumSeconds = options.minimumSeconds || 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user