From a0d8eb9380d613b199191d84856e39f0e1a29380 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 20 Jan 2026 16:02:11 +0100 Subject: [PATCH] fix(labels-form): improve readability of labelsToSend assignment --- .../application/advanced/cluster/swarm-forms/labels-form.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/labels-form.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/labels-form.tsx index db173313b..d1681dcd0 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/labels-form.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/swarm-forms/labels-form.tsx @@ -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 || "",