diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index c0f76cf02..c76236bb1 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -11,8 +11,8 @@ export let nightMode: boolean; export let graphs: SvelteComponent[]; - export let search: string; - export let days: number; + export let initialSearch: string; + export let initialDays: number; export let controller: SvelteComponent | null; const browserSearch = (search: string, query: string) => { @@ -30,20 +30,20 @@
{#if controller} - + {/if} - {#if !pending && sourceData && preferences} + {#if !pending} {#each graphs as graph} + import { onMount } from "svelte"; import { writable } from "svelte/store"; import useAsync from "./async"; import useAsyncReactive from "./asyncReactive"; diff --git a/ts/graphs/asyncReactive.ts b/ts/graphs/asyncReactive.ts index bb91f1fc7..57d7b500f 100644 --- a/ts/graphs/asyncReactive.ts +++ b/ts/graphs/asyncReactive.ts @@ -4,8 +4,8 @@ interface AsyncReativeData { value: Readable; error: Readable; pending: Readable; - success: Readable; loading: Readable; + success: Readable; } function useAsyncReactive( diff --git a/ts/graphs/index.ts b/ts/graphs/index.ts index 4e261cfd6..68e877e66 100644 --- a/ts/graphs/index.ts +++ b/ts/graphs/index.ts @@ -40,8 +40,8 @@ export function graphs( i18n, graphs, nightMode, - search, - days, + initialSearch: search, + initialDays: days, controller, }, });