From d623abd20c070b7736f66793b8f921a0ad7cb27f Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 7 Sep 2025 16:00:03 +0000 Subject: fix: fix tag flicker caused by tag sorting --- apps/browser-extension/src/components/TagList.tsx | 24 ++++++++++------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'apps/browser-extension/src/components') diff --git a/apps/browser-extension/src/components/TagList.tsx b/apps/browser-extension/src/components/TagList.tsx index 5635a7c2..77a3ea87 100644 --- a/apps/browser-extension/src/components/TagList.tsx +++ b/apps/browser-extension/src/components/TagList.tsx @@ -14,20 +14,16 @@ export default function TagList({ bookmarkId }: { bookmarkId: string }) { {bookmark.tags.length === 0 && !isBookmarkStillTagging(bookmark) && ( No tags )} - {[...bookmark.tags] - .sort((a, b) => - a.attachedBy === "ai" ? 1 : b.attachedBy === "ai" ? -1 : 0, - ) - .map((tag) => ( - - {tag.name} - - ))} + {[...bookmark.tags].map((tag) => ( + + {tag.name} + + ))} {isBookmarkStillTagging(bookmark) && ( AI tags loading... )} -- cgit v1.2.3-70-g09d2