Skip to content

Commit 4d5e855

Browse files
committed
fix(CTable): allow to pass 0 as a column value
1 parent 033632e commit 4d5e855

File tree

1 file changed

+1
-1
lines changed
  • packages/coreui-vue/src/components/table

1 file changed

+1
-1
lines changed

packages/coreui-vue/src/components/table/CTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const CTable = defineComponent({
239239
columnNames.value &&
240240
columnNames.value.map(
241241
(colName: string) =>
242-
item[colName] &&
242+
item[colName] !== undefined &&
243243
h(
244244
CTableDataCell,
245245
{

0 commit comments

Comments
 (0)