diff --git a/packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js b/packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js index d5ffbff8a24..f468408d180 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js +++ b/packages/quantic/force-app/main/default/lwc/quanticResultLink/quanticResultLink.js @@ -121,7 +121,8 @@ export default class QuanticResultLink extends NavigationMixin( this.engine = engine; ResultUtils.bindClickEventsOnResult( this.engine, - this.result, + // Destructuring transforms the Proxy object created by Salesforce to a normal object so no unexpected behaviour will occur with the Headless library. + {...this.result, raw: {...this.result.raw}}, this.template, this.headless.buildInteractiveResult ); diff --git a/packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js b/packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js index b7c10912f8a..659c68c2567 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js +++ b/packages/quantic/force-app/main/default/lwc/quanticResultQuickview/quanticResultQuickview.js @@ -185,7 +185,11 @@ export default class QuanticResultQuickview extends LightningElement { const {pushRecentResult} = this.headless.loadRecentResultsActions( this.engine ); - this.engine.dispatch(pushRecentResult(Object.create(this.result))); + + // Destructuring transforms the Proxy object created by Salesforce to a normal object so no unexpected behaviour will occur with the Headless library. + this.engine.dispatch( + pushRecentResult({...this.result, raw: {...this.result.raw}}) + ); } closeQuickview() {