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 25, 2021
1 parent 2a8725d commit 3847055
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 3847055

Please sign in to comment.