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:
@@ -341,7 +341,7 @@ export function PantryItemDialog({ item, locations, plants, onSuccess }: Props)
|
||||
<Label>Location</Label>
|
||||
<select className={inputCls} value={form.locationId} onChange={e => set("locationId", e.target.value)}>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user