From ef8bcbcd4b4317c152b0a3c8b37492fb1e981a8d Mon Sep 17 00:00:00 2001 From: Histmy Date: Tue, 28 Feb 2023 19:10:26 +0100 Subject: [PATCH] =?UTF-8?q?duplicita=20ji=C5=BE=20ne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/helpServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpServer.ts b/src/utils/helpServer.ts index 16c28a0..a6b99e5 100644 --- a/src/utils/helpServer.ts +++ b/src/utils/helpServer.ts @@ -6,7 +6,7 @@ createServer((_, res) => { const customKomandy: KomandNaExport[] = module.exports.customKomandy; const customAliasy: SRecord = module.exports.customAliasy; - const vsechnyKomandy: KomandNaExport[] = [...komandy, ...customKomandy]; + const vsechnyKomandy: KomandNaExport[] = JSON.parse(JSON.stringify([...komandy, ...customKomandy])); for (const key in customAliasy) { const i = vsechnyKomandy.findIndex(komand => komand.name == customAliasy[key]);