From 60e5019a2a25d9b6cd7f5556be556d5b0a6884f5 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Fri, 29 Dec 2023 22:56:06 +0000 Subject: [PATCH] add missing mutation to update organization default language --- src/containers/SettingList/Organisation/Organisation.tsx | 1 + src/graphql/mutations/Organization.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/containers/SettingList/Organisation/Organisation.tsx b/src/containers/SettingList/Organisation/Organisation.tsx index 31ce20dc0..c96bef349 100644 --- a/src/containers/SettingList/Organisation/Organisation.tsx +++ b/src/containers/SettingList/Organisation/Organisation.tsx @@ -203,6 +203,7 @@ export const Organisation = () => { name: payload.name, activeLanguageIds, signaturePhrase: payload.signaturePhrase, + defaultLanguageId: payload.defaultLanguage.id, }; return object; }; diff --git a/src/graphql/mutations/Organization.ts b/src/graphql/mutations/Organization.ts index 96ebd7cab..5725ab141 100644 --- a/src/graphql/mutations/Organization.ts +++ b/src/graphql/mutations/Organization.ts @@ -7,6 +7,10 @@ export const UPDATE_ORGANIZATION = gql` id shortcode name + defaultLanguage { + id + label + } outOfOffice { defaultFlowId enabled