Skip to content

Commit

Permalink
fix TypeScript NPE type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
esbena committed Oct 14, 2021
1 parent 869c9d3 commit 9267c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ function shouldCombinePacks(packsInput?: string): boolean {
function combinePacks(packs1: Packs, packs2: Packs): Packs {
const packs = {};
for (const lang of Object.keys(packs1)) {
packs[lang] = packs1[lang].concat(packs2[lang] || []);
packs[lang] = packs1[lang]?.concat(packs2[lang] || []);
}
for (const lang of Object.keys(packs2)) {
if (!packs[lang]) {
Expand Down

0 comments on commit 9267c37

Please sign in to comment.