Skip to content

Commit 5f2959f

Browse files
authored
fix #263 (#264)
1 parent 62257b2 commit 5f2959f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/utils/configUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export const extendConfig = (config) => {
1515
return config;
1616

1717
config.settings = merge({}, defaultSettings, config.settings);
18+
config._fieldsCntByType = {};
19+
config._funcsCntByType = {};
1820

1921
_extendTypesConfig(config.types, config);
2022

@@ -73,7 +75,6 @@ function _extendTypeConfig(type, typeConfig, config) {
7375
}
7476

7577
function _extendFieldsConfig(subconfig, config) {
76-
config._fieldsCntByType = {};
7778
for (let field in subconfig) {
7879
_extendFieldConfig(subconfig[field], config);
7980
if (subconfig[field].subfields) {
@@ -83,7 +84,6 @@ function _extendFieldsConfig(subconfig, config) {
8384
}
8485

8586
function _extendFuncArgsConfig(subconfig, config) {
86-
config._funcsCntByType = {};
8787
if (!subconfig) return;
8888
for (let funcKey in subconfig) {
8989
const funcDef = subconfig[funcKey];

0 commit comments

Comments
 (0)