mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix the revert new row crashing the tools service issue (#2341)
This commit is contained in:
@@ -60,7 +60,6 @@ export class EditDataComponent extends GridParentComponent implements OnInit, On
|
|||||||
private firstRender = true;
|
private firstRender = true;
|
||||||
private totalElapsedTimeSpan: number;
|
private totalElapsedTimeSpan: number;
|
||||||
private complete = false;
|
private complete = false;
|
||||||
private idMapping: { [row: number]: number } = {};
|
|
||||||
|
|
||||||
// Current selected cell state
|
// Current selected cell state
|
||||||
private currentCell: { row: number, column: number, isEditable: boolean };
|
private currentCell: { row: number, column: number, isEditable: boolean };
|
||||||
@@ -453,7 +452,7 @@ export class EditDataComponent extends GridParentComponent implements OnInit, On
|
|||||||
// revert our last new row
|
// revert our last new row
|
||||||
this.removingNewRow = true;
|
this.removingNewRow = true;
|
||||||
|
|
||||||
this.dataService.revertRow(this.idMapping[currentNewRowIndex])
|
this.dataService.revertRow(this.rowIdMappings[currentNewRowIndex])
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.removeRow(currentNewRowIndex);
|
this.removeRow(currentNewRowIndex);
|
||||||
this.newRowVisible = false;
|
this.newRowVisible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user