add table name to models that are imported (#12445)

* add table name to models

* adding null check for safety

* As per PR comment
This commit is contained in:
Udeesha Gautam
2020-09-18 16:54:54 -07:00
committed by GitHub
parent bf49788296
commit e06980a664

View File

@@ -99,6 +99,11 @@ export class ModelImportLocationPage extends ModelViewBase implements IPageView,
}
if (this.importTable && this._labelComponent) {
// Add table name to the models imported.
// Since Table name is picked last as per new flow this hasn't been set yet.
this.modelsViewData?.forEach(x => x.targetImportTable = this.importTable);
if (!this.validateImportTableName()) {
this._labelComponent.value = constants.selectModelsTableMessage;
} else {