Skip to content

Commit a88a54a

Browse files
committed
nvm that was fine for the shocker model types
1 parent f729e8e commit a88a54a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/routes/(app)/shockers/[shockerId=guid]/edit/+page.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,13 @@
132132
<FieldLabel>Model</FieldLabel>
133133
<Select.Root type="single" name="model" bind:value={model}>
134134
<Select.Trigger>
135-
{Object.entries(ShockerModelType).find(([, v]) => v === model)?.[0] ??
136-
'Select model'}
135+
{model ?? 'Select model'}
137136
</Select.Trigger>
138137
<Select.Content>
139138
<Select.Group>
140-
{#each Object.entries(ShockerModelType) as [name, value] (value)}
141-
<Select.Item {value} label={name}>
142-
{name}
139+
{#each Object.values(ShockerModelType) as option (option)}
140+
<Select.Item value={option} label={option}>
141+
{option}
143142
</Select.Item>
144143
{/each}
145144
</Select.Group>

0 commit comments

Comments
 (0)