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]);