react-component / table

React Table
https://table.react-component.now.sh
MIT License
1.3k stars 589 forks source link

Cannot read properties of null (reading 'endsWith') #1186

Open capfsb opened 2 months ago

capfsb commented 2 months ago

I got this bug when use virtual and set column width to null

Uncaught TypeError: Cannot read properties of null (reading 'endsWith')
    at parseColWidth (useWidthColumns.js:8:1)
    at useWidthColumns.js:26:1
    at Array.forEach (<anonymous>)
    at useWidthColumns.js:25:1
    at mountMemo (react-dom.development.js:17225:1)
    at Object.useMemo (react-dom.development.js:17670:1)
    at Object.useMemo (react.development.js:1650:1)
    at useWidthColumns (useWidthColumns.js:18:1)
    at useColumns (index.js:252:1)
    at Table (Table.js:158:1)
afc163 commented 2 months ago

Could you provide a reproduce?