From 9f39b44911d973a04585940dc3bea24e25d9dcc2 Mon Sep 17 00:00:00 2001 From: Tibet Sprague Date: Thu, 4 May 2023 09:58:36 -0700 Subject: [PATCH] Make sure group roles appear for all moderators in sidebar --- src/graphql/fragments/groupFieldsFragment.js | 6 ++++++ src/graphql/fragments/groupQueryFragment.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/graphql/fragments/groupFieldsFragment.js b/src/graphql/fragments/groupFieldsFragment.js index 648967594..227b1e4c6 100644 --- a/src/graphql/fragments/groupFieldsFragment.js +++ b/src/graphql/fragments/groupFieldsFragment.js @@ -90,6 +90,12 @@ const groupFieldsFragment = ({ withTopics, withJoinQuestions, withPrerequisites, id name avatarUrl + groupRoles { + name + emoji + active + groupId + } } } parentGroups { diff --git a/src/graphql/fragments/groupQueryFragment.js b/src/graphql/fragments/groupQueryFragment.js index bfe66079d..0eda6c1a9 100644 --- a/src/graphql/fragments/groupQueryFragment.js +++ b/src/graphql/fragments/groupQueryFragment.js @@ -187,6 +187,12 @@ export default () => { avatarUrl lastActiveAt name + groupRoles { + name + emoji + active + groupId + } } } openOffersAndRequests: posts(types: ["offer", "request"], isFulfilled: false, first: 4) {