File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
<Section page =" mountains" >
10
10
<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 }
14
16
</Route >
15
17
<Route path =" mountains" exact >
16
18
<MountainsFilter />
Original file line number Diff line number Diff line change 19
19
}
20
20
> ()
21
21
let heights = []
22
- window [' heights' ] = heights
22
+ $ : {
23
+ if (mounted && items ) {
24
+ heights .length = 0
25
+ onScroll ()
26
+ }
27
+ }
23
28
24
29
let viewport: HTMLElement
25
30
let contents: HTMLElement
Original file line number Diff line number Diff line change 51
51
</script >
52
52
53
53
<div class =" flex flex-col page w-full" >
54
- <h1 class =" font-bold" >Mountains</h1 >
55
54
<input
56
55
class =" w-full border-black border-solid border p-2 rounded"
57
56
type =" text"
You can’t perform that action at this time.
0 commit comments