Skip to content

Commit

Permalink
[gn] fix list select rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Dec 2, 2024
1 parent 4961528 commit 2ed6f15
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export const GroceryListItem = forwardRef<HTMLDivElement, GroceryListItemProps>(
</CollapsibleSimple>
</div>
<RecentPeople item={item} className="mr-1" />
<ListTag item={item} collapsed={menuOpen} className="mr-1" />
<Suspense>
<ListTag item={item} collapsed={menuOpen} className="mr-1" />
</Suspense>
{!isPurchased && (
<Suspense>
<RecentPurchaseHint
Expand Down Expand Up @@ -415,7 +417,7 @@ function ListTag({
{name}
</span>
<span className="inline whitespace-nowrap overflow-hidden text-ellipsis max-w-full lg:hidden">
{getInitials(name)}
{getInitials(name).toUpperCase()}
</span>
</div>
</Link>
Expand Down

0 comments on commit 2ed6f15

Please sign in to comment.