Skip to content

Commit af105da

Browse files
committed
Do not set state
1 parent 8a887c9 commit af105da

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/modes/indicator/IndicatorAbout.svelte

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<script>
2-
import { modeByID } from '..';
32
import { formatDateISO } from '../../formats';
4-
import { currentMode } from '../../stores';
53
import AboutSection from '../../components/AboutSection.svelte';
64
75
/**
@@ -17,11 +15,6 @@
1715
*/
1816
export let sensor;
1917
20-
function setExportMode() {
21-
// switch to export mode
22-
currentMode.set(modeByID.export);
23-
}
24-
2518
let exportURL = '';
2619
$: {
2720
exportURL = '';
@@ -59,7 +52,7 @@
5952
</li>
6053
{/each}
6154
<li>
62-
<a href={`../export/?${exportURL}`} on:click={setExportMode}>Export Data</a>
55+
<a href={`../export/?${exportURL}`}>Export Data</a>
6356
</li>
6457
</ul>
6558
{/if}

0 commit comments

Comments
 (0)