Skip to content

Commit fd2eb64

Browse files
#183 update columns info on inital view config parse
for data view restore on vscode reload and loading custom config files for open data views
1 parent 7ba7623 commit fd2eb64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/data.preview.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export class DataPreview {
386386
* @param columns Displayed columns array.
387387
* @param rowCount Loaded data rows count.
388388
*/
389-
private updateStats(columns, rowCount) {
389+
private updateStats(columns: Array<string>, rowCount: number) {
390390
// update columns and rows state vars
391391
this._columns = columns;
392392
this._rowCount = rowCount;
@@ -638,6 +638,8 @@ export class DataPreview {
638638
}
639639
}
640640
});
641+
// update columns info
642+
this._columns = config['columns'];
641643
return config;
642644
}
643645

0 commit comments

Comments
 (0)