mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user