Fix crash when reverting in edit data with no changes (#2594)

This commit is contained in:
Matt Irvine
2018-09-14 21:18:54 -07:00
committed by Karl Burtram
parent dc0bc6e606
commit d156c0be3d

View File

@@ -464,7 +464,7 @@ export class EditDataComponent extends GridParentComponent implements OnInit, On
} else {
try {
// Perform a revert row operation
if (this.currentCell) {
if (this.currentCell && this.currentCell.row !== undefined && this.currentCell.row !== null) {
await this.dataService.revertRow(this.currentCell.row);
}
} finally {