mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 14:45:42 +02:00
fix(labels-form): improve readability of labelsToSend assignment
This commit is contained in:
@@ -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 || "",
|
||||
|
||||
Reference in New Issue
Block a user