Bug
When running in dev server mode, the Jobs table on the Ingest page emits a console warning:
Warning: `scroll.x` in virtual table must be number.
This occurs because scroll={{y: 400, x: true}} is passed to VirtualTable, but rc-table's VirtualTable only accepts numbers for scroll.x (unlike the regular Table which accepts number | true | string).
|
<VirtualTable<JobData> |
|
className={styles["jobs"] || ""} |
|
columns={jobColumns} |
|
dataSource={jobs} |
|
pagination={false} |
|
rowKey={(record) => record.key} |
|
scroll={{y: 400, x: true}} |
|
tableLayout={"fixed"}/> |
The line was changed in PR #1798 .
Potential fix: Change x: true to x: 1 (the value rc-table falls back to internally).
CLP version
69ed117
Environment
Any environment running the webui client in development mode (warning only appears when NODE_ENV !== 'production').
Reproduction steps
- Run the webui in development mode
- Navigate to the Ingest page
- Open browser console
- Observe the warning:
scroll.x in virtual table must be number.
Bug
When running in dev server mode, the Jobs table on the Ingest page emits a console warning:
This occurs because
scroll={{y: 400, x: true}}is passed to VirtualTable, but rc-table's VirtualTable only accepts numbers forscroll.x(unlike the regular Table which acceptsnumber | true | string).clp/components/webui/client/src/pages/IngestPage/Jobs/index.tsx
Lines 33 to 40 in 69ed117
The line was changed in PR #1798 .
Potential fix: Change
x: truetox: 1(the value rc-table falls back to internally).CLP version
69ed117
Environment
Any environment running the webui client in development mode (warning only appears when
NODE_ENV !== 'production').Reproduction steps
scroll.xin virtual table must be number.