Fixed the bug with refreshing the page over and over (#13966)

This commit is contained in:
Leila Lali
2021-01-19 14:21:12 -08:00
committed by GitHub
parent b089d880fc
commit a3eb9d29a9
3 changed files with 18 additions and 11 deletions

View File

@@ -206,8 +206,10 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
private async onTableSelected(): Promise<void> {
if (this._tableSelectionComponent?.data) {
this.importTable = this._tableSelectionComponent?.data;
await this.storeImportConfigTable();
if (this._tableSelectionComponent?.isDataValid) {
this.importTable = this._tableSelectionComponent?.data;
await this.storeImportConfigTable();
}
if (this._dataTable) {
await this._dataTable.refresh();
if (this._emptyModelsComponent) {