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
This commit is contained in:
Henry
2026-03-23 21:40:35 +00:00
committed by GitHub
parent 596f346181
commit c0aae5449f

View File

@@ -39,7 +39,7 @@ export function LabelForm({
labelPublicId: entityId,
},
{
enabled: isEdit && !!entityId,
enabled: !!isEdit && entityId.length >= 12,
},
);