- updated version;
This commit is contained in:
@@ -10,7 +10,6 @@ const UnsavedChangesDetector = ({ getValuesFn }) => {
|
||||
const formData = getValuesFn();
|
||||
const initial = storeGet.main.formInitialData();
|
||||
const isEqual = equal(initial, formData);
|
||||
console.log(initial, formData);
|
||||
|
||||
if (!isEqual) {
|
||||
event.returnValue = __('You have unsaved changes. If you proceed, they will be lost.', 'gepafin');
|
||||
|
||||
Reference in New Issue
Block a user