Refactor quantity input parsing to handle additional units and improve conversion logic across inventory forms and recipe pages
This commit is contained in:
@@ -144,11 +144,11 @@ export default function CreateRecipePage() {
|
||||
style={{ padding: '0.5rem' }}
|
||||
>
|
||||
<option value={0}>Välj produkt</option>
|
||||
{products.map((product) => (
|
||||
{products.length > 0 ? products.map((product) => (
|
||||
<option key={product.id} value={product.id}>
|
||||
{product.name}
|
||||
</option>
|
||||
))}
|
||||
)) : <option disabled>Kunde inte ladda produkter</option>}
|
||||
</select>
|
||||
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user