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