Skip to content

Commit

Permalink
Do not enforce camel case on sibling entity object keys (#2919)
Browse files Browse the repository at this point in the history
* Do not enforce camel case on sibling entity object keys

* Fix linter issue introduced in #2900
  • Loading branch information
eemeli authored Jul 25, 2023
1 parent 22da53e commit 93c7179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions translate/src/api/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ export async function fetchSiblingEntities(
locale: string,
): Promise<EntitySiblings> {
const search = new URLSearchParams({ entity: String(entity), locale });
const results = await GET('/get-sibling-entities/', search);
return keysToCamelCase(results);
return GET('/get-sibling-entities/', search);
}

export async function fetchEntityHistory(
Expand Down
1 change: 0 additions & 1 deletion translate/src/context/MachineryTranslations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
abortMachineryRequests,
fetchCaighdeanTranslation,
fetchGoogleTranslation,
fetchMicrosoftTerminology,
fetchMicrosoftTranslation,
fetchSystranTranslation,
fetchTranslationMemory,
Expand Down

0 comments on commit 93c7179

Please sign in to comment.