From 5ca044c79f1740c9546e9dd9cddacdb07820f68e Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 13 Jan 2026 15:24:32 +0100 Subject: [PATCH] fix: ensure recipe translations save properly by awaiting DOM updates before form submission Previously, when users approved or skipped translations in the recipe forms, the translation data wasn't being saved to the database. This was caused by a timing issue where the form was submitted before Svelte had updated the DOM with the hidden inputs containing the translation data. Fixed by using tick() to wait for pending state changes to be applied before submitting the form. --- src/routes/[recipeLang=recipeLang]/add/+page.svelte | 11 +++++++++-- .../[recipeLang=recipeLang]/edit/[name]/+page.svelte | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/routes/[recipeLang=recipeLang]/add/+page.svelte b/src/routes/[recipeLang=recipeLang]/add/+page.svelte index d809050..a20582c 100644 --- a/src/routes/[recipeLang=recipeLang]/add/+page.svelte +++ b/src/routes/[recipeLang=recipeLang]/add/+page.svelte @@ -1,5 +1,6 @@