We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
items
1 parent 207b600 commit 481cb1dCopy full SHA for 481cb1d
packages/coreui-react/src/components/table/CTable.tsx
@@ -155,7 +155,7 @@ export const CTable = forwardRef<HTMLTableElement, CTableProps>(
155
columns,
156
footer,
157
hover,
158
- items = [],
+ items,
159
responsive,
160
small,
161
striped,
@@ -188,7 +188,7 @@ export const CTable = forwardRef<HTMLTableElement, CTableProps>(
188
if (typeof column === 'object') return column.key
189
else return column
190
})
191
- : Object.keys(items[0] || {}).filter((el) => el.charAt(0) !== '_')
+ : Object.keys((items && items[0]) || {}).filter((el) => el.charAt(0) !== '_')
192
193
const pretifyName = (name: string) => {
194
return name
0 commit comments