Fix summary loading

This commit is contained in:
2024-03-15 01:25:56 +00:00
parent fb9212daa8
commit 24cf0af49e
2 changed files with 9 additions and 9 deletions

View File

@@ -24,7 +24,7 @@
watch( watch(
() => [props.start, props.end], () => [props.start, props.end],
() => load () => load()
); );
load(); load();

View File

@@ -14,18 +14,18 @@
const weatherStore = useWeatherStore(); const weatherStore = useWeatherStore();
weatherStore.getReadingAggregate(props.start, props.end).then((newWeatherAggregates) => { const load = () => {
weatherAggregates.value = newWeatherAggregates; weatherStore.getReadingAggregate(props.start, props.end).then((newWeatherAggregates) => {
}); weatherAggregates.value = newWeatherAggregates;
});
};
watch( watch(
() => [props.start, props.end], () => [props.start, props.end],
() => { () => load()
weatherStore.getReadingAggregate(props.start, props.end).then((newWeatherAggregates) => {
weatherAggregates.value = newWeatherAggregates;
});
}
); );
load();
</script> </script>
<template> <template>