File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
export let patch: Patch ;
9
9
export let showAllVersions: boolean ;
10
- const hasPatchOptions = !! patch .options ?.length ;
11
10
let expanded: boolean = false ;
11
+
12
+ const options = Object .entries (patch .options ).map (([optionKey , option ]) => ({
13
+ optionKey ,
14
+ ... option
15
+ }));
16
+ const hasPatchOptions = options .length > 0 ;
12
17
</script >
13
18
14
19
<!-- svelte-ignore a11y-click-events-have-key-events -->
83
88
{#if expanded && hasPatchOptions }
84
89
<span transition:fade ={{ easing : quintOut , duration : 1000 }}>
85
90
<div class ="options" transition:slide ={{ easing : quintOut , duration : 500 }}>
86
- {#each patch . options as option }
91
+ {#each options as option }
87
92
<div class =" option" >
88
93
<h5 id ="option-title" >{option .title }</h5 >
89
94
<h5 >
You can’t perform that action at this time.
0 commit comments