From f8b7bda74a19124a85fec409812944188726dc4f Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Thu, 11 Jun 2026 18:04:42 +0200 Subject: [PATCH] Guard self-serve active wash restore after unmount --- src/views/dashboards/userDashboard/wash/MyWashStart.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/dashboards/userDashboard/wash/MyWashStart.vue b/src/views/dashboards/userDashboard/wash/MyWashStart.vue index fdec5aac..4af7dba7 100644 --- a/src/views/dashboards/userDashboard/wash/MyWashStart.vue +++ b/src/views/dashboards/userDashboard/wash/MyWashStart.vue @@ -1369,7 +1369,7 @@ const applyServerActiveWash = async (activeWash: any) => { }; const restoreServerActiveWash = async () => { - if (isRestoringServerActiveWash.value) { + if (isMyWashStartUnmounted.value || isRestoringServerActiveWash.value) { return; } @@ -1385,6 +1385,10 @@ const restoreServerActiveWash = async () => { isRestoringServerActiveWash.value = true; try { const activeWash = await fetchServerActiveWash(); + if (isMyWashStartUnmounted.value) { + return; + } + if (activeWash) { shouldRestoreServerActiveWash.value = false; await applyServerActiveWash(activeWash);