cat-qw-lib 0.43.38 → 0.43.39

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.
@@ -687,12 +687,15 @@ class BaseControlComponent {
687
687
  }
688
688
  });
689
689
  }
690
- ngOnChanges() {
690
+ ngOnChanges(changes) {
691
691
  if (this.store) {
692
692
  this.query = new BaseQuery(this.store);
693
693
  }
694
- this.initialRecord = structuredClone(this.record);
695
- ;
694
+ if (changes['record'] && changes['record'].currentValue) {
695
+ // Only update initialRecord when a new record is received from the server
696
+ this.initialRecord = structuredClone(changes['record'].currentValue);
697
+ console.log("onchange initialRecord=>", this.initialRecord);
698
+ }
696
699
  }
697
700
  handleModelChange(event, valid, val) {
698
701
  if (this.attributeModel?.name) {