From 54bdc83ce4b9c697444fb3cfd51b5db77c888751 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 29 Jan 2025 23:13:39 +0100 Subject: [PATCH] :bug: Fix issue on translation management script --- frontend/scripts/translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/translations.js b/frontend/scripts/translations.js index a781a45d8..8ee179856 100755 --- a/frontend/scripts/translations.js +++ b/frontend/scripts/translations.js @@ -238,7 +238,7 @@ async function rehash(options, ...other) { entry.comments.reference = val.join(", "); const flagData = entry.comments.flag ?? ""; - const flags = flagData.split(/\s*,\s*/).filter((s) => s !== ""); + let flags = flagData.split(/\s*,\s*/).filter((s) => s !== ""); if (flags.includes("unused")) { flags = flags.filter((o) => o !== "unused");