We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f729e8e commit a88a54aCopy full SHA for a88a54a
1 file changed
src/routes/(app)/shockers/[shockerId=guid]/edit/+page.svelte
@@ -132,14 +132,13 @@
132
<FieldLabel>Model</FieldLabel>
133
<Select.Root type="single" name="model" bind:value={model}>
134
<Select.Trigger>
135
- {Object.entries(ShockerModelType).find(([, v]) => v === model)?.[0] ??
136
- 'Select model'}
+ {model ?? 'Select model'}
137
</Select.Trigger>
138
<Select.Content>
139
<Select.Group>
140
- {#each Object.entries(ShockerModelType) as [name, value] (value)}
141
- <Select.Item {value} label={name}>
142
- {name}
+ {#each Object.values(ShockerModelType) as option (option)}
+ <Select.Item value={option} label={option}>
+ {option}
143
</Select.Item>
144
{/each}
145
</Select.Group>
0 commit comments