fix(labels-form): improve readability of labelsToSend assignment

This commit is contained in:
Mauricio Siu
2026-01-20 16:02:11 +01:00
parent e5fcc10db2
commit a0d8eb9380

View File

@@ -102,7 +102,8 @@ export const LabelsForm = ({ id, type }: LabelsFormProps) => {
) || {};
// If no labels, send null to clear the database
const labelsToSend = Object.keys(labelsObject).length > 0 ? labelsObject : null;
const labelsToSend =
Object.keys(labelsObject).length > 0 ? labelsObject : null;
await mutateAsync({
applicationId: id || "",