duplicita již ne
This commit is contained in:
parent
7b565024db
commit
ef8bcbcd4b
@ -6,7 +6,7 @@ createServer((_, res) => {
|
||||
const customKomandy: KomandNaExport[] = module.exports.customKomandy;
|
||||
const customAliasy: SRecord<string> = 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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user