Skip to content

Commit fc3a8bc

Browse files
committed
prerender: false
1 parent 834a90c commit fc3a8bc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

view/src/components/charts/Line.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
export const prerender = false;
23
import ApexCharts from 'apexcharts';
34
import { onMount } from 'svelte';
45

view/src/components/charts/PieChart.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
export const prerender = false;
23
import ApexCharts from 'apexcharts';
34
import { onMount } from 'svelte';
45
type Props = {

view/src/routes/loaded.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { MAX_DURATION, HOUR, DAY } from '~/lib/consts';
33
import Dashboard from '~/pages/Dashboard.svelte';
44
import { type Kind, type Visit } from '~/share/schema';
5-
import { browser } from '$app/environment';
65
76
const { data, lastFetch }: { data: Visit[]; lastFetch: Date } = $props();
87
let kind: Kind | 'all' = $state('all');
@@ -28,6 +27,4 @@
2827
<option value="festival">Festival</option>
2928
</select>
3029
</header>
31-
{#if browser}
32-
<Dashboard data={visits} {duration} {kind} {lastFetch} />
33-
{/if}
30+
<Dashboard data={visits} {duration} {kind} {lastFetch} />

0 commit comments

Comments
 (0)