diff --git a/packages/tools/src/DatabaseAnalyser.ts b/packages/tools/src/DatabaseAnalyser.ts index 16149079..515c53a4 100644 --- a/packages/tools/src/DatabaseAnalyser.ts +++ b/packages/tools/src/DatabaseAnalyser.ts @@ -77,6 +77,16 @@ export class DatabaseAnalyser { [...(this.structure[field] || []).filter(x => !removeAllIds.includes(x.objectId)), ...newArray], x => x.pureName ); + + // merge missing data from old structure + for (const item of res[field]) { + const original = (this.structure[field] || []).find(x => x.objectId == item.objectId); + if (original) { + for (const key in original) { + if (!item[key]) item[key] = original[key]; + } + } + } } return res;