From 5c5acd27279569ab8aebbb03ccced47728a289ef Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Wed, 15 Jun 2022 12:05:56 +0300 Subject: [PATCH] fix: reorder offical tags filter --- api/functions/graphql/types/tag.js | 3 +++ .../pages/CreatePostPage/Components/ContentEditor/Toolbar.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/functions/graphql/types/tag.js b/api/functions/graphql/types/tag.js index a482073..354487b 100644 --- a/api/functions/graphql/types/tag.js +++ b/api/functions/graphql/types/tag.js @@ -18,6 +18,9 @@ const officialTags = extendType({ type: "Tag", resolve: () => { return prisma.tag.findMany({ + orderBy: { + title: 'asc' + }, where: { isOfficial: true } diff --git a/src/features/Posts/pages/CreatePostPage/Components/ContentEditor/Toolbar.tsx b/src/features/Posts/pages/CreatePostPage/Components/ContentEditor/Toolbar.tsx index ef73d3d..37f6de8 100644 --- a/src/features/Posts/pages/CreatePostPage/Components/ContentEditor/Toolbar.tsx +++ b/src/features/Posts/pages/CreatePostPage/Components/ContentEditor/Toolbar.tsx @@ -22,7 +22,7 @@ export default function Toolbar() { - + {/* */}