update restore files when source changes (#6622)

This commit is contained in:
Udeesha Gautam
2019-08-06 14:58:24 -07:00
committed by GitHub
parent 4f72118140
commit 8e36821c6b

View File

@@ -798,7 +798,8 @@ export class RestoreDialog extends Modal {
DOM.show(this._fileListTableContainer); DOM.show(this._fileListTableContainer);
this._fileListData.push(data); this._fileListData.push(data);
// Select the first row for the table by default // Set data and Select the first row for the table by default
this._fileListTable.setData(this._fileListData);
this._fileListTable.setSelectedRows([0]); this._fileListTable.setSelectedRows([0]);
this._fileListTable.setActiveCell(0, 0); this._fileListTable.setActiveCell(0, 0);
} }