From 5f3f59349d6c04f309962793d65e5d37ca836965 Mon Sep 17 00:00:00 2001 From: Anton K Date: Fri, 24 Nov 2023 11:51:17 +0100 Subject: [PATCH] FIO-4235 Fixed confirmation dialog popping up when the data is empty in EditGrid --- src/components/editgrid/EditGrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editgrid/EditGrid.js b/src/components/editgrid/EditGrid.js index 4f5da05fec..ca088c1e69 100644 --- a/src/components/editgrid/EditGrid.js +++ b/src/components/editgrid/EditGrid.js @@ -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(); }