mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -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 totalElapsedTimeSpan: number;
|
||||
private complete = false;
|
||||
private idMapping: { [row: number]: number } = {};
|
||||
|
||||
// Current selected cell state
|
||||
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
|
||||
this.removingNewRow = true;
|
||||
|
||||
this.dataService.revertRow(this.idMapping[currentNewRowIndex])
|
||||
this.dataService.revertRow(this.rowIdMappings[currentNewRowIndex])
|
||||
.then(() => {
|
||||
this.removeRow(currentNewRowIndex);
|
||||
this.newRowVisible = false;
|
||||
|
||||
Reference in New Issue
Block a user