Skip to content

Commit

Permalink
fix: structured keys (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Aug 27, 2024
1 parent 93884da commit 52c65f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const flattenParams = (

function buildQuery(object: { [key: string]: any }): string {
return Object.keys(object)
.filter((k) => !!object[k])
.filter((k) => object[k] !== undefined && object[k] !== null)
.map((k) => {
if (Array.isArray(object[k])) {
return object[k]
Expand Down
2 changes: 1 addition & 1 deletion src/ui/hooks/useAllTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const useAllTranslations = () => {
data[ns] = (
(await translationsLoadable.mutateAsync({
path: { languages: [language] },
query: { ns },
query: { ns, structureDelimiter: "" },
})) as any
)?.[language];
}
Expand Down

0 comments on commit 52c65f0

Please sign in to comment.