cat-qw-lib 0.43.52 → 0.43.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -1405,10 +1405,6 @@ class BaseFormComponent {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
checkUnsavedChanges() {
|
|
1408
|
-
if (!this.initialRecord) {
|
|
1409
|
-
this.initialRecord = JSON.parse(JSON.stringify(this.record)); // Ensure it's assigned
|
|
1410
|
-
console.log("2 initialRecord =>", this.initialRecord);
|
|
1411
|
-
}
|
|
1412
1408
|
const hasChanges = JSON.stringify(this.initialRecord) !== JSON.stringify(this.record);
|
|
1413
1409
|
const isSaved = this.formStateService.getIsFormSaved(); // Ensure this method exists
|
|
1414
1410
|
if (hasChanges && !isSaved) {
|