Skip to content

Commit 6ef9ec7

Browse files
Fix bad title
1 parent 185e14b commit 6ef9ec7

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/components/MountainView.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
<Section page="mountains">
1010
<Route path="mountains/:id/:route?" let:params>
11-
<MountainInfo
12-
id={decodeURIComponent(params.id)}
13-
route={decodeURIComponent(params.route)} />
11+
{#if params.id}
12+
<MountainInfo
13+
id={decodeURIComponent(params.id)}
14+
route={decodeURIComponent(params.route)} />
15+
{/if}
1416
</Route>
1517
<Route path="mountains" exact>
1618
<MountainsFilter />

src/components/VirtualList.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
}
2020
>()
2121
let heights = []
22-
window['heights'] = heights
22+
$: {
23+
if (mounted && items) {
24+
heights.length = 0
25+
onScroll()
26+
}
27+
}
2328
2429
let viewport: HTMLElement
2530
let contents: HTMLElement

src/components/mountains/MountainsFilter.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
</script>
5252

5353
<div class="flex flex-col page w-full">
54-
<h1 class="font-bold">Mountains</h1>
5554
<input
5655
class="w-full border-black border-solid border p-2 rounded"
5756
type="text"

0 commit comments

Comments
 (0)