From 61d26e4ed8d0cf35db4174b1fea4a3c1a584685d Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 23 Mar 2026 21:39:53 +0000 Subject: [PATCH] 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 b72763c7..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.length >= 12, + enabled: !!isEdit && entityId.length >= 12, }, );