mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user