Skip to content

Commit

Permalink
add unformatted language for snippet comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Oct 16, 2023
1 parent 85fd978 commit db03880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/views/query-response/snippets/snippets-helper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ export function renderSnippets(supportedLanguages: ISupportedLanguages) {
function Snippet(props: ISnippetProps) {
let { language } = props;
const { sdkDownloadLink, sdkDocLink } = props.snippetInfo[language];
const unformattedLanguage = language;

/**
* Converting language lowercase so that we won't have to call toLowerCase() in multiple places.
*
* Ie the monaco component expects a lowercase string for the language prop and the graphexplorerapi expects
* a lowercase string for the param value.
*/
const unformattedLanguage = language;

language = language.toLowerCase();

const { dimensions: { response }, snippets,
Expand Down

0 comments on commit db03880

Please sign in to comment.