diff options
| author | MohamedBassem <me@mbassem.com> | 2024-05-19 16:43:59 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-05-19 16:43:59 +0100 |
| commit | bfcf0a4429e4d182307eb4c8599d4d11e9cc5bed (patch) | |
| tree | 739218f3ca0f0cba0946c91e9766177019a95a3d /apps | |
| parent | e8b47751660e24a6bd24941b6cb6b0ee79ffad3c (diff) | |
| download | karakeep-bfcf0a4429e4d182307eb4c8599d4d11e9cc5bed.tar.zst | |
fix(web): Sort the tags in the TagsEditor of the preview dialog. Fixes #171
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/TagsEditor.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx b/apps/web/components/dashboard/bookmarks/TagsEditor.tsx index 4c836b32..6ea6cf53 100644 --- a/apps/web/components/dashboard/bookmarks/TagsEditor.tsx +++ b/apps/web/components/dashboard/bookmarks/TagsEditor.tsx @@ -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>, |
