From 2809cd690aaf60a5e9df572b1f9bf488fc85ae04 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 07:29:39 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../dashboard/settings/tags/tag-manager.tsx | 60 +++++++++---------- apps/dokploy/components/shared/tag-filter.tsx | 5 +- .../components/shared/tag-selector.tsx | 5 +- 3 files changed, 36 insertions(+), 34 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/tags/tag-manager.tsx b/apps/dokploy/components/dashboard/settings/tags/tag-manager.tsx index 08d0a08b6..07eb9a7f3 100644 --- a/apps/dokploy/components/dashboard/settings/tags/tag-manager.tsx +++ b/apps/dokploy/components/dashboard/settings/tags/tag-manager.tsx @@ -60,10 +60,7 @@ export const TagManager = () => { >
- + {tag.color && ( {tag.color} @@ -74,36 +71,35 @@ export const TagManager = () => { {permissions?.tag.update && ( )} - {permissions?.tag.delete && ( { - await deleteTag({ - tagId: tag.tagId, - }) - .then(async () => { - await utils.tag.all.invalidate(); - toast.success( - "Tag deleted successfully", - ); + {permissions?.tag.delete && ( + { + await deleteTag({ + tagId: tag.tagId, }) - .catch(() => { - toast.error( - "Error deleting tag", - ); - }); - }} - > - - + + )}
diff --git a/apps/dokploy/components/shared/tag-filter.tsx b/apps/dokploy/components/shared/tag-filter.tsx index 8b6b23522..0faa37a88 100644 --- a/apps/dokploy/components/shared/tag-filter.tsx +++ b/apps/dokploy/components/shared/tag-filter.tsx @@ -75,7 +75,10 @@ export function TagFilter({
- + {selectedTags.length > 0 && (