Update sqlcmd table to use dataValues instead of deprecated data (#13121)

* Update sqlcmd table to use dataValues instead of deprecated data

* fix in declarativeTableComponent
This commit is contained in:
Kim Santiago
2020-10-29 13:19:59 -07:00
committed by GitHub
parent e15ad17967
commit 8c956cdb79
2 changed files with 9 additions and 4 deletions

View File

@@ -139,7 +139,13 @@ export default class DeclarativeTableComponent extends ContainerBase<any, azdata
private onCellDataChanged(newValue: string | number | boolean | any, rowIdx: number, colIdx: number): void {
this.data[rowIdx][colIdx].value = newValue;
this.setPropertyFromUI<any[][]>((props, value) => props.data = value, this.data);
if (this.properties.data) {
this.setPropertyFromUI<any[][]>((props, value) => props.data = value, this.data);
} else {
this.setPropertyFromUI<any[][]>((props, value) => props.dataValues = value, this.data);
}
let newCellData: azdata.TableCell = {
row: rowIdx,
column: colIdx,