EnhancedLightningGrid
EnhancedLightningGrid copied to clipboard
Uncaught Error during LWC component connect phase: [Cannot convert undefined or null to object]
Summary
Calling an API and loading the data on the table cause an error, the response of the API is correct and was validated. The error was reported after winter 23 release update.
After testing our code, we found that using this method causes the error, trying to convert to Double.
private List<grishield.SDGField> GetFields() { List<grishield.SDGField> fields = new List<grishield.SDGField>(); fields.add( new grishield.SDGField('1', 'AMOUNT USED', 'FieldName__c', 'DOUBLE', '', false, false, null, 5)); }
Actual result