From c0aae5449ff1bb654eb6de27caad9a204e0da14a Mon Sep 17 00:00:00 2001 From: Henry <30578846+hjball@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:40:35 +0000 Subject: [PATCH] fix: prevent invalid calls to fetch label by publicId (#449) * fix: prevent invalid calls to fetch label by publicId * fix: ensure query only runs when isEdit is true --- apps/web/src/components/LabelForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/LabelForm.tsx b/apps/web/src/components/LabelForm.tsx index 46fd2b8f..fbcc5556 100644 --- a/apps/web/src/components/LabelForm.tsx +++ b/apps/web/src/components/LabelForm.tsx @@ -39,7 +39,7 @@ export function LabelForm({ labelPublicId: entityId, }, { - enabled: isEdit && !!entityId, + enabled: !!isEdit && entityId.length >= 12, }, );