mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
fix wrong update on time range selector that causes duplicate time entry start requests, fixes ST-449
This commit is contained in:
@@ -25,7 +25,7 @@ const tempEnd = ref(props.end ? getLocalizedDayJs(props.end).format() : null);
|
|||||||
|
|
||||||
watch(props, () => {
|
watch(props, () => {
|
||||||
tempStart.value = getLocalizedDayJs(props.start).format();
|
tempStart.value = getLocalizedDayJs(props.start).format();
|
||||||
tempEnd.value = getLocalizedDayJs(props.end).format();
|
tempEnd.value = props.end ? getLocalizedDayJs(props.end).format() : null;
|
||||||
});
|
});
|
||||||
function updateTimeEntry() {
|
function updateTimeEntry() {
|
||||||
const tempStartUtc = getDayJsInstance()(tempStart.value).utc().format();
|
const tempStartUtc = getDayJsInstance()(tempStart.value).utc().format();
|
||||||
|
|||||||
Reference in New Issue
Block a user