File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
src/components/NcDateTimePicker Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -542,19 +542,8 @@ const pickerType = computed(() => ({
542542}))
543543
544544// Convert min/max Date into VueDatePicker's time object shape
545- const minTime = computed (() => {
546- if (! props .min ) {
547- return undefined
548- }
549- return { hours: props .min .getHours (), minutes: props .min .getMinutes (), seconds: props .min .getSeconds () }
550- })
551-
552- const maxTime = computed (() => {
553- if (! props .max ) {
554- return undefined
555- }
556- return { hours: props .max .getHours (), minutes: props .max .getMinutes (), seconds: props .max .getSeconds () }
557- })
545+ const minTime = computed (() => props .min && { hours: props .min .getHours (), minutes: props .min .getMinutes (), seconds: props .min .getSeconds () })
546+ const maxTime = computed (() => props .max && { hours: props .max .getHours (), minutes: props .max .getMinutes (), seconds: props .max .getSeconds () })
558547
559548/**
560549 * Called on model value update of the library.
You can’t perform that action at this time.
0 commit comments