From fef9ab399830bc1f804a335bc03e67f0103798a1 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:14:10 -0500 Subject: [PATCH] fix locked loading state issue --- frontend/pages/label/[id].vue | 1 + frontend/pages/location/[id].vue | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/pages/label/[id].vue b/frontend/pages/label/[id].vue index c880f93..f7235f0 100644 --- a/frontend/pages/label/[id].vue +++ b/frontend/pages/label/[id].vue @@ -59,6 +59,7 @@ const { error, data } = await api.labels.update(labelId.value, updateData); if (error) { + updating.value = false; toast.error("Failed to update label"); return; } diff --git a/frontend/pages/location/[id].vue b/frontend/pages/location/[id].vue index a549acc..fd98085 100644 --- a/frontend/pages/location/[id].vue +++ b/frontend/pages/location/[id].vue @@ -68,6 +68,7 @@ const { error, data } = await api.locations.update(locationId.value, updateData); if (error) { + updating.value = false; toast.error("Failed to update location"); return; }