Skip to content

Commit

Permalink
fix(web): Sort the tags in the TagsEditor of the preview dialog. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed May 19, 2024
1 parent e8b4775 commit bfcf0a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/web/components/dashboard/bookmarks/TagsEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export function TagsEditor({ bookmark }: { bookmark: ZBookmark }) {
const { data: existingTags, isLoading: isExistingTagsLoading } =
api.tags.list.useQuery();

existingTags?.tags.sort((a, b) => a.name.localeCompare(b.name));

const onChange = (
_option: readonly EditableTag[],
actionMeta: ActionMeta<EditableTag>,
Expand Down

0 comments on commit bfcf0a4

Please sign in to comment.