Skip to content

Commit aff0465

Browse files
authored
update
1 parent caa1334 commit aff0465

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/EIDETypeDefine.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,11 +1337,12 @@ export class ProjectConfiguration<T extends BuilderConfigData>
13371337
//
13381338

13391339
// compatible missing field for old project
1340-
const defCfg = this.GetDefault(this.config.type);
1340+
let defCfg = <any>this.GetDefault(this.config.type);
1341+
let curCfg = <any>this.config;
13411342
for (const key in defCfg) {
1342-
if (this.config[key] == undefined &&
1343+
if (curCfg[key] == undefined &&
13431344
this.excludeKeysInFile.includes(key) == false) {
1344-
this.config[key] = defCfg[key];
1345+
curCfg[key] = defCfg[key];
13451346
}
13461347
}
13471348

0 commit comments

Comments
 (0)