From cd2e59f8fc393068727c559197d7b587b6eb13ad Mon Sep 17 00:00:00 2001 From: tienifr Date: Thu, 30 May 2024 04:49:44 +0700 Subject: [PATCH] fix: empty ui does not show when deleting all tags --- src/pages/workspace/tags/WorkspaceTagsPage.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/tags/WorkspaceTagsPage.tsx b/src/pages/workspace/tags/WorkspaceTagsPage.tsx index 20e135a27118..a5193d0893ec 100644 --- a/src/pages/workspace/tags/WorkspaceTagsPage.tsx +++ b/src/pages/workspace/tags/WorkspaceTagsPage.tsx @@ -288,6 +288,8 @@ function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) { ); + const hasVisibleTag = tagList.some((tag) => tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || isOffline); + return ( )} - {tagList.length === 0 && !isLoading && ( + {!hasVisibleTag && !isLoading && ( )} - {tagList.length > 0 && !isLoading && ( + {hasVisibleTag && !isLoading && (