From f2cd80044c37c4318bf5b2339d0e25d0fc75cc7c Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 18 Oct 2021 08:08:21 +0300 Subject: [PATCH] Update update-codes.js --- scripts/update-codes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/update-codes.js b/scripts/update-codes.js index a64ee066..0da5dc54 100644 --- a/scripts/update-codes.js +++ b/scripts/update-codes.js @@ -36,9 +36,11 @@ async function main() { file.write('.gh-pages/codes.json', JSON.stringify(sorted)) const _items = {} - countries.forEach(country => { + Object.values(countries).forEach(country => { _items[country.code] = { - ...country, + flag: country.flag, + name: country.name, + code: country.code, expanded: false, channels: [] }