diff --git a/src/api/sdk.ts b/src/api/sdk.ts index 3baba8f..96629fc 100644 --- a/src/api/sdk.ts +++ b/src/api/sdk.ts @@ -385,5 +385,14 @@ export async function requestIngredient(ingredientId: number): Promise { + const householdSlug = requireSlug() + const { error, response } = await api.DELETE('/api/v1/households/{householdSlug}/shopping/current/ingredients', { + params: { path: { householdSlug } }, + body: { ingredientId }, + }) + if (!response.ok) throw httpError(response, error) +} + // Re-export domain command types for convenience at SDK surface export type { PurchaseRequest } from '@/domain/commands' diff --git a/src/components/ingredients/EditableIngredientsPanel.vue b/src/components/ingredients/EditableIngredientsPanel.vue index c571d93..1af3050 100644 --- a/src/components/ingredients/EditableIngredientsPanel.vue +++ b/src/components/ingredients/EditableIngredientsPanel.vue @@ -32,7 +32,7 @@