cat-qw-lib 0.43.21 → 0.43.23

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.
@@ -685,7 +685,8 @@ class BaseControlComponent {
685
685
  if (this.store) {
686
686
  this.query = new BaseQuery(this.store);
687
687
  }
688
- this.initialRecord = { ...this.record };
688
+ this.initialRecord = structuredClone(this.record);
689
+ ;
689
690
  }
690
691
  handleModelChange(event, valid, val) {
691
692
  if (this.attributeModel?.name) {
@@ -1336,7 +1337,7 @@ class BaseFormComponent {
1336
1337
  return this.baseQuery?.getValue();
1337
1338
  }
1338
1339
  init() {
1339
- this.formStateService.setIsFormSaved(true);
1340
+ this.formStateService.setIsFormSaved(false);
1340
1341
  this.service.initList();
1341
1342
  this.baseStore?.setRecordChange(SHARED.EMPTY);
1342
1343
  let id = this.activatedRoute ? this.activatedRoute.snapshot.params[SHARED.ID] : '';