microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
58 stars 26 forks source link

Getting customer_data threw exception error while trying to print customer details table in E-commerce page #234

Closed PratikSuthar8 closed 8 months ago

PratikSuthar8 commented 9 months ago

Other Development Issue

Summary

Describe the issue i'm trying to print a table that contains the information of the customer in my e-commerce Customer Data module but instad of getting the table i'm facing the bellow issue shown in the screenshot

Screenshots

Screenshot 2024-01-16 113845

anastasiiaandreichuk commented 8 months ago

Hi @PratikSuthar8

Looks like customer-data is your custom module. At line 18 in customer.data.view.tsx you're trying to read someVarible.result when someVarible is undefined. You can either check that someVarible is defined in an if statement, or use optional chaining (someVarible?.result).

Please note that we don't debug customer code.