fix: ensure query only runs when isEdit is true
This commit is contained in:
@@ -39,7 +39,7 @@ export function LabelForm({
|
||||
labelPublicId: entityId,
|
||||
},
|
||||
{
|
||||
enabled: isEdit && entityId.length >= 12,
|
||||
enabled: !!isEdit && entityId.length >= 12,
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user