1 parent dd1c973 commit 7a5e82aCopy full SHA for 7a5e82a
1 file changed
src/util/applyOverrides.ts
@@ -16,7 +16,7 @@ export default function applyOverrides(
16
if ( overrides ) {
17
for ( const category of Object.keys( data ) ) {
18
if ( !overrides[ category ] ) {
19
- return; // Category does not exist.
+ continue; // Category does not exist.
20
}
21
for (
22
const categoryKey of
@@ -33,5 +33,17 @@ export default function applyOverrides(
33
overrides[ category ][ categoryKey ];
34
35
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
48
49
0 commit comments