dosubot[bot] commented on issue #35783:
URL: https://github.com/apache/superset/issues/35783#issuecomment-3430755737
<!-- Answer -->
This is a regression in 6.0.0-RC2: table chart header IDs are now set as
`header-undefined` because the code assigns header IDs using `id={'header-' +
column.originalLabel}`. If `originalLabel` is missing or undefined in the
column metadata, the header ID becomes `header-undefined` [see
source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx).
In previous versions, IDs were consistently populated based on column names or
keys. This change likely stems from recent refactoring in how columns and their
properties are structured and accessed for rendering.
There is currently no fallback or validation for `originalLabel` before
using it in the header ID assignment, so if it's missing, you get the observed
behavior. Ensuring that `originalLabel` is always set in the column metadata,
or updating the header ID assignment to fall back to a column key or label if
`originalLabel` is missing, would resolve the issue. No existing issues or
documentation specifically address this bug yet.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/33fcc23d-55d4-4a6a-bee4-9a94506dbd5e?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/35783)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]