From c618a64bc07023c2b035d0fd90046126c7d433aa Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:28:51 -0500 Subject: [PATCH] fix(client): use block instead of fields: blockName in graphql query (#54519) --- client/src/templates/Challenges/codeally/show.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/src/templates/Challenges/codeally/show.tsx b/client/src/templates/Challenges/codeally/show.tsx index 3263cfbfcbb165..8687055c2caabd 100644 --- a/client/src/templates/Challenges/codeally/show.tsx +++ b/client/src/templates/Challenges/codeally/show.tsx @@ -214,9 +214,9 @@ class ShowCodeAlly extends Component { data: { challengeNode: { challenge: { + block, challengeType, description, - fields: { blockName }, id: challengeId, instructions, notes, @@ -237,7 +237,7 @@ class ShowCodeAlly extends Component { } = this.props; const blockNameTitle = `${t( - `intro:${superBlock}.blocks.${blockName}.title` + `intro:${superBlock}.blocks.${block}.title` )}: ${title}`; const windowTitle = `${blockNameTitle} | freeCodeCamp.org`; @@ -397,7 +397,7 @@ class ShowCodeAlly extends Component { - + @@ -418,11 +418,9 @@ export const query = graphql` query CodeAllyChallenge($slug: String!) { challengeNode(challenge: { fields: { slug: { eq: $slug } } }) { challenge { + block challengeType description - fields { - blockName - } helpCategory id instructions