Skip to content

Commit edd4f53

Browse files
committed
Fix #148
1 parent eb7e61c commit edd4f53

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/ui/components/settings/listBuilder.svelte

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
if (selected === -1) return
2828
addItem(setting.options[selected])
2929
selected = -1
30+
update++
3031
}
3132
</script>
3233

@@ -35,11 +36,13 @@
3536
<option value={-1}>
3637
<div>{setting.addNewItemMessage}</div>
3738
</option>
38-
{#each setting.options as option, index (update)}
39-
<option value={index}>
40-
<div>{option.name}</div>
41-
</option>
42-
{/each}
39+
{#key update}
40+
{#each setting.options as option, index}
41+
<option value={index}>
42+
<div>{option.name}</div>
43+
</option>
44+
{/each}
45+
{/key}
4346
</select>
4447

4548
<div slot="beneath">

0 commit comments

Comments
 (0)