Closed mbradoschi closed 1 year ago
TBody component will throw a TypeError whenever the children provided to it represent a single item array.
TBody
TypeError
E.g.:
<TBody> {singleItemArray.map(item => <Tr />)} </TBody>
TBody should properly display provided children or be empty when none provided.
Component errors with:
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'tableWidth')
Breaking change after aio-theme upgrade inside https://github.com/AdobeDocs/cloudmanager-api-docs.
https://github.com/AdobeDocs/cloudmanager-api-docs/blob/main/src/components/playground/link-table.js#L67
Production
AEM Cloud Manager
This was fixed with https://github.com/adobe/aio-theme/pull/1521 sorry for missing tag ๐
๐ Bug Report
TBody
component will throw aTypeError
whenever the children provided to it represent a single item array.E.g.:
๐ค Expected Behavior
TBody
should properly display provided children or be empty when none provided.๐ฏ Current Behavior
Component errors with:
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'tableWidth')
๐ Possible Solution
1517
๐ฆ Context
Breaking change after aio-theme upgrade inside https://github.com/AdobeDocs/cloudmanager-api-docs.
๐ป Code Sample
https://github.com/AdobeDocs/cloudmanager-api-docs/blob/main/src/components/playground/link-table.js#L67
๐ Your Environment
Production
๐งข Your Company/Team
AEM Cloud Manager
๐ท Tracking Issue (optional)