Fixed a bug with loading model list (#16640)

This commit is contained in:
Leila Lali
2021-08-09 14:26:40 -07:00
committed by GitHub
parent 005c0aad7b
commit 647d1f1167

View File

@@ -148,6 +148,8 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
if (this._dataTable.isEmpty) { if (this._dataTable.isEmpty) {
formBuilder.addFormItem({ title: '', component: this._labelContainer }); formBuilder.addFormItem({ title: '', component: this._labelContainer });
} else {
formBuilder.removeFormItem({ title: '', component: this._labelContainer });
} }
if (this._tableDataCountComponent) { if (this._tableDataCountComponent) {
this._tableDataCountComponent.value = constants.getDataCount(this._dataTable.modelCounts); this._tableDataCountComponent.value = constants.getDataCount(this._dataTable.modelCounts);
@@ -200,7 +202,6 @@ export class CurrentModelsComponent extends ModelViewBase implements IPageView {
private refreshComponents(): void { private refreshComponents(): void {
if (this._formBuilder) { if (this._formBuilder) {
this.removeComponents(this._formBuilder);
this.addComponents(this._formBuilder); this.addComponents(this._formBuilder);
} }
} }