fix wrong update on time range selector that causes duplicate time entry start requests, fixes ST-449

This commit is contained in:
Gregor Vostrak
2024-10-08 18:16:06 +02:00
parent d3d3a98b08
commit b3b84db004

View File

@@ -25,7 +25,7 @@ const tempEnd = ref(props.end ? getLocalizedDayJs(props.end).format() : null);
watch(props, () => {
tempStart.value = getLocalizedDayJs(props.start).format();
tempEnd.value = getLocalizedDayJs(props.end).format();
tempEnd.value = props.end ? getLocalizedDayJs(props.end).format() : null;
});
function updateTimeEntry() {
const tempStartUtc = getDayJsInstance()(tempStart.value).utc().format();