mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-04 09:35:39 -05:00
Fix summary loading
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => [props.start, props.end],
|
() => [props.start, props.end],
|
||||||
() => load
|
() => load()
|
||||||
);
|
);
|
||||||
|
|
||||||
load();
|
load();
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user