From 06dad95ff4e71a7f0563a7044b5a54f85e645454 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:38:24 -0500 Subject: [PATCH 1/2] Silence missing ISO warning --- nuxt.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index df6f1a1c3b..a5d9b5a500 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -170,7 +170,7 @@ export default { file: 'en.json', }, ...(locales ?? []), - ], + ].filter((l) => Boolean(l.iso)), lazy: true, langDir: 'locales', defaultLocale: 'en', From 2727f2f4eff4ae1ae624c4b220af32bd31d3da81 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:39:02 -0500 Subject: [PATCH 2/2] Fix analytics endpoint trailing slash --- src/data/usage-data-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/usage-data-service.js b/src/data/usage-data-service.js index 071ad556a1..c8df16ea64 100644 --- a/src/data/usage-data-service.js +++ b/src/data/usage-data-service.js @@ -14,7 +14,7 @@ const UsageDataService = { * @param {Parameters[1]} data */ post(endpoint, data) { - return ApiService.post(`analytics/${endpoint}`, data) + return ApiService.post(`analytics/${endpoint}/`, data) }, /**