mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-29 14:14:30 +02:00
fix: Unable to parse patch options
This commit is contained in:
parent
bc8e19e0e7
commit
ddeca84966
@ -7,8 +7,13 @@
|
||||
|
||||
export let patch: Patch;
|
||||
export let showAllVersions: boolean;
|
||||
const hasPatchOptions = !!patch.options?.length;
|
||||
let expanded: boolean = false;
|
||||
|
||||
const options = Object.entries(patch.options).map(([optionKey, option]) => ({
|
||||
optionKey,
|
||||
...option
|
||||
}));
|
||||
const hasPatchOptions = options.length > 0;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
@ -83,7 +88,7 @@
|
||||
{#if expanded && hasPatchOptions}
|
||||
<span transition:fade={{ easing: quintOut, duration: 1000 }}>
|
||||
<div class="options" transition:slide={{ easing: quintOut, duration: 500 }}>
|
||||
{#each patch.options as option}
|
||||
{#each options as option}
|
||||
<div class="option">
|
||||
<h5 id="option-title">{option.title}</h5>
|
||||
<h5>
|
||||
|
Loading…
x
Reference in New Issue
Block a user