Skip to content

Commit

Permalink
FIO-4235 Fixed confirmation dialog popping up when the data is empty …
Browse files Browse the repository at this point in the history
…in EditGrid
  • Loading branch information
antonSoftensity committed Nov 24, 2023
1 parent 30c6e13 commit 5f3f593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editgrid/EditGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export default class EditGridComponent extends NestedArrayComponent {

showDialog(rowIndex) {
const editRow = this.editRows[rowIndex];
if (_.isEqual(editRow.backup, editRow.data)) {
if (_.isNil(editRow.backup) || _.isEqual(editRow.backup, editRow.data)) {
return Promise.resolve();
}

Expand Down

0 comments on commit 5f3f593

Please sign in to comment.