Skip to content

Commit 3847055

Browse files
committed
fix TypeScript NPE type warning
1 parent 2a8725d commit 3847055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ function shouldCombinePacks(packsInput?: string): boolean {
11741174
function combinePacks(packs1: Packs, packs2: Packs): Packs {
11751175
const packs = {};
11761176
for (const lang of Object.keys(packs1)) {
1177-
packs[lang] = packs1[lang].concat(packs2[lang] || []);
1177+
packs[lang] = packs1[lang]?.concat(packs2[lang] || []);
11781178
}
11791179
for (const lang of Object.keys(packs2)) {
11801180
if (!packs[lang]) {

0 commit comments

Comments
 (0)