cat-qw-lib 0.43.39 → 0.43.40
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
|
@@ -674,11 +674,6 @@ class BaseControlComponent {
|
|
|
674
674
|
this.baseStore.setIsFormSubmitted(false);
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
|
-
console.log("oninit record=>", this.record);
|
|
678
|
-
if (this.record) {
|
|
679
|
-
this.initialRecord = structuredClone(this.record); // Reset initial state after saving
|
|
680
|
-
console.log("oninit initialRecord=>", this.initialRecord);
|
|
681
|
-
}
|
|
682
677
|
this.formStateService.selectIsFormNavigating()
|
|
683
678
|
.pipe(takeUntil(this.destroy$))
|
|
684
679
|
.subscribe((res) => {
|
|
@@ -691,8 +686,9 @@ class BaseControlComponent {
|
|
|
691
686
|
if (this.store) {
|
|
692
687
|
this.query = new BaseQuery(this.store);
|
|
693
688
|
}
|
|
694
|
-
if (changes['record']
|
|
689
|
+
if (changes['record']) {
|
|
695
690
|
// Only update initialRecord when a new record is received from the server
|
|
691
|
+
console.log("onchange record=>", this.record);
|
|
696
692
|
this.initialRecord = structuredClone(changes['record'].currentValue);
|
|
697
693
|
console.log("onchange initialRecord=>", this.initialRecord);
|
|
698
694
|
}
|