diff --git a/packages/design/src/table/index.md b/packages/design/src/table/index.md index 8f5803a73..77eb5ad05 100644 --- a/packages/design/src/table/index.md +++ b/packages/design/src/table/index.md @@ -24,6 +24,8 @@ nav: + + ## API diff --git a/packages/design/src/table/index.tsx b/packages/design/src/table/index.tsx index 4fd880b04..40b401042 100644 --- a/packages/design/src/table/index.tsx +++ b/packages/design/src/table/index.tsx @@ -68,7 +68,7 @@ function Table(props: TableProps) { const [currentSelectedRows, setCurrentSelectedRows] = useState([]); const [currentSelectedInfo, setCurrentSelectedInfo] = useState({}); - const newColumns = columns.map(item => { + const newColumns = columns?.map(item => { if (item.ellipsis) { return { ...item,