Skip to content

Commit 7e161f8

Browse files
committed
fixed error when no optionsDisplay was provided
1 parent 887aae7 commit 7e161f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svelte/src/EnumInput.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<label for={name}>{name}</label>
1010
<select bind:value={value} type="text" name={name} id={name}>
1111
{#each options as option, i}
12-
<option value={option}>{optionsDisplay[i] || option}</option>
12+
<option value={option}>{(optionsDisplay || [])[i] || option}</option>
1313
{/each}
1414
</select>
1515
</div>

0 commit comments

Comments
 (0)