complexqa_frontend_core 1.21.6 → 1.21.7
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/package.json
CHANGED
|
@@ -608,9 +608,17 @@ export class familyGeneralElement
|
|
|
608
608
|
return false;
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
let payload =
|
|
611
|
+
let payload = typeof element.get_pure_data === 'function'
|
|
612
|
+
? element.get_pure_data()
|
|
613
|
+
: false;
|
|
612
614
|
|
|
613
|
-
|
|
615
|
+
if (!payload)
|
|
616
|
+
{
|
|
617
|
+
payload = {};
|
|
618
|
+
payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
payload = this.normalize_payload(payload);
|
|
614
622
|
|
|
615
623
|
if (typeof callback?.before === 'function')
|
|
616
624
|
{
|
|
@@ -532,9 +532,17 @@ export class familyGeneralElement
|
|
|
532
532
|
return false;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
let payload =
|
|
535
|
+
let payload = typeof element.get_pure_data === 'function'
|
|
536
|
+
? element.get_pure_data()
|
|
537
|
+
: false;
|
|
536
538
|
|
|
537
|
-
|
|
539
|
+
if (!payload)
|
|
540
|
+
{
|
|
541
|
+
payload = {};
|
|
542
|
+
payload[ this.get_primary_key() ] = element[ this.get_primary_key() ];
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
payload = this.normalize_payload(payload);
|
|
538
546
|
|
|
539
547
|
if (typeof callback?.before === 'function')
|
|
540
548
|
{
|