Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(quantic): issue occurring with result title and quick view in sal…
…esforce service console addressed (#4078) ## [SFINT-5571](https://coveord.atlassian.net/browse/SFINT-5571) ### The issue: An issue was occurring in the Service Console when trying to open a result or its Quickview: https://github.com/coveo/ui-kit/assets/86681870/7d3048d9-61aa-4e1d-a72c-e79fbf9a6e5e This issue is duo to the Proxy object that Salesforce wraps the result object with, this proxy object is causing issues when the Headless library tries to use the result object. ### The solution: Instead of using `Object.create(this.result)` that we used to use to create a copy of the object and that apparently is no longer useful, I'm now creating a new object after distructuring the result object and this is doing the job preventing the errors from occuring: https://github.com/coveo/ui-kit/assets/86681870/c71ea442-e183-4f04-91af-d2bc8cb71f25 [SFINT-5571]: https://coveord.atlassian.net/browse/SFINT-5571?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Sylvie Allain <58052881+sallainCoveo@users.noreply.github.com>
- Loading branch information