baldav/frontend
4aiman d5fa37a9fa Fix recipe save: lastInsertId was undefined, ingredients got null recipe_id
tauri-plugin-sql execute() returns { lastInsertId } but it's unreliable
(returns 0 or undefined for INSERT). New recipe got rid=undefined,
then addRecipeIngredient failed with NOT NULL constraint on recipe_id.

Fix: query actual id after insert with SELECT id ORDER BY id DESC LIMIT 1.
Edit worked because rid came from the existing recipeId parameter.
2026-05-29 09:25:30 +03:00
..
css Goal markers, 7-day kcal balance, weight-calorie correlation, food cost 2026-05-27 17:45:50 +03:00
data Clean up nutrients_guessed: removed 222 false positives 2026-05-23 18:10:00 +03:00
js Fix recipe save: lastInsertId was undefined, ingredients got null recipe_id 2026-05-29 09:25:30 +03:00
lib Android support + Settings screen + Mobile UX fixes 2026-05-14 14:17:57 +03:00
index.html GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00