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:
@@ -39,7 +39,7 @@ export function LabelForm({
|
|||||||
labelPublicId: entityId,
|
labelPublicId: entityId,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: isEdit && !!entityId,
|
enabled: !!isEdit && entityId.length >= 12,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user