Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Fix lines not visible on first visit
Browse files Browse the repository at this point in the history
  • Loading branch information
krystejj committed Apr 23, 2024
1 parent c1adb34 commit 27e603e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/components/mainBox/tabs/LinesTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import { get, writable } from "svelte/store";
import { setContext } from "svelte";
import { getLineTypeName, getVehicleTypeName } from "$lib/names";
import type { Line } from "$lib/types";
import type { Line, Lines } from "$lib/types";
import { getLine } from "$lib/api";
const lines = get(state.stores.lines);
let lines: Lines | undefined;
state.stores.lines.subscribe((newLines) => (lines = newLines));
const chosenLineStore = writable<Line | undefined>();
setContext("chosenLineStore", chosenLineStore);
</script>
Expand Down

0 comments on commit 27e603e

Please sign in to comment.