From 6ca8a2c51ec85f361f449b43e3cdccd2fce51e73 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sat, 26 Aug 2023 09:38:59 +0200 Subject: [PATCH] fix(org): Use nsMerge to merge namespaces --- sites/org/pages/account/apikeys/index.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/org/pages/account/apikeys/index.mjs b/sites/org/pages/account/apikeys/index.mjs index 31ea66318a6..f1c346f8e10 100644 --- a/sites/org/pages/account/apikeys/index.mjs +++ b/sites/org/pages/account/apikeys/index.mjs @@ -1,6 +1,7 @@ // Dependencies import dynamic from 'next/dynamic' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' +import { nsMerge } from 'shared/utils.mjs' // Hooks import { useTranslation } from 'next-i18next' // Components @@ -9,7 +10,7 @@ import { ns as authNs } from 'shared/components/wrappers/auth/index.mjs' import { ns as apikeysNs } from 'shared/components/account/apikeys.mjs' // Translation namespaces used on this page -const ns = [...new Set([...apikeysNs, ...authNs, ...pageNs])] +const ns = nsMerge(apikeysNs, authNs, pageNs) /* * Some things should never generated as SSR