From 74e1642aa2f781f0de1b285cfa460abe5d2d2f65 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 15 Aug 2025 19:26:53 +0400 Subject: [PATCH] refactor: attempt to rerender less --- src/components/profile-data-table.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/profile-data-table.tsx b/src/components/profile-data-table.tsx index 4e795b5..3a3d073 100644 --- a/src/components/profile-data-table.tsx +++ b/src/components/profile-data-table.tsx @@ -250,9 +250,9 @@ const TagsCell = React.memo<{ return (
- {hiddenCount > 0 ? ( - - {ButtonContent} + + {ButtonContent} + {hiddenCount > 0 && (
{effectiveTags.map((t) => ( @@ -266,10 +266,8 @@ const TagsCell = React.memo<{ ))}
-
- ) : ( - ButtonContent - )} + )} +
); }