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(
() => [props.start, props.end],
() => load
() => load()
);
load();

View File

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