Skip to content

Commit 7a5e82a

Browse files
util(applyOverrides): log overrides
1 parent dd1c973 commit 7a5e82a

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/util/applyOverrides.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function applyOverrides(
1616
if ( overrides ) {
1717
for ( const category of Object.keys( data ) ) {
1818
if ( !overrides[ category ] ) {
19-
return; // Category does not exist.
19+
continue; // Category does not exist.
2020
}
2121
for (
2222
const categoryKey of
@@ -33,5 +33,17 @@ export default function applyOverrides(
3333
overrides[ category ][ categoryKey ];
3434
}
3535
}
36+
for ( const category of Object.keys( overrides ) ) {
37+
if ( !data[ category ] ) {
38+
data[ category ] = overrides[ category ];
39+
if ( logger ) {
40+
logger(
41+
`${category}`,
42+
data[ category ],
43+
overrides[ category ]
44+
);
45+
}
46+
}
47+
}
3648
}
3749
}

0 commit comments

Comments
 (0)