Pantry: show plain location name, not full path

The dropdown already only shows Kitchen locations so the
"Kitchen › Freezer" prefix is redundant — just show "Freezer".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Bonna Moon
2026-06-29 18:12:26 -05:00
parent 67bc23c64e
commit 70df86ba59

View File

@@ -341,7 +341,7 @@ export function PantryItemDialog({ item, locations, plants, onSuccess }: Props)
<Label>Location</Label> <Label>Location</Label>
<select className={inputCls} value={form.locationId} onChange={e => set("locationId", e.target.value)}> <select className={inputCls} value={form.locationId} onChange={e => set("locationId", e.target.value)}>
<option value=""> none </option> <option value=""> none </option>
{locations.map(l => <option key={l.id} value={l.id}>{l.path ?? l.name}</option>)} {locations.map(l => <option key={l.id} value={l.id}>{l.name}</option>)}
</select> </select>
</div> </div>