feat: initialize state for image URL in WriteRecipePage component

This commit is contained in:
Nils-Johan Gynther
2026-04-16 18:26:09 +02:00
parent 195d1ddbc6
commit 1ddce5f48c
@@ -43,6 +43,7 @@ export default function WriteRecipePage() {
const [editedName, setEditedName] = useState(''); const [editedName, setEditedName] = useState('');
const [editedDescription, setEditedDescription] = useState(''); const [editedDescription, setEditedDescription] = useState('');
const [editedInstructions, setEditedInstructions] = useState(''); const [editedInstructions, setEditedInstructions] = useState('');
const [imageUrl, setImageUrl] = useState<string | null>(null);
const [ingredients, setIngredients] = useState<ParsedIngredientRow[]>([]); const [ingredients, setIngredients] = useState<ParsedIngredientRow[]>([]);
const [allProducts, setAllProducts] = useState<Product[]>([]); const [allProducts, setAllProducts] = useState<Product[]>([]);
const [isParsing, setIsParsing] = useState(false); const [isParsing, setIsParsing] = useState(false);