mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 04:32:15 +01:00
clamp running time entry duration to min 0 for FullCalendarHeaderDuration calc
This commit is contained in:
@@ -265,9 +265,9 @@ export function useCalendarEvents(params: {
|
|||||||
'seconds'
|
'seconds'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
durationSeconds = params.currentTime.value.diff(
|
durationSeconds = Math.max(
|
||||||
getDayJsInstance()(entry.start),
|
0,
|
||||||
'seconds'
|
params.currentTime.value.diff(getDayJsInstance()(entry.start), 'seconds')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user