mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 11:28:47 +00:00
fix(labels-form): improve readability of labelsToSend assignment
This commit is contained in:
+2
-1
@@ -102,7 +102,8 @@ export const LabelsForm = ({ id, type }: LabelsFormProps) => {
|
|||||||
) || {};
|
) || {};
|
||||||
|
|
||||||
// If no labels, send null to clear the database
|
// 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({
|
await mutateAsync({
|
||||||
applicationId: id || "",
|
applicationId: id || "",
|
||||||
|
|||||||
Reference in New Issue
Block a user