In the transforms feature in the Kibana management section, a user can specify a persistent data transformation. In the wizard to create a transform we show a preview of the expected transform. It previews settings selected in the wizard's form, therefor the columns can change on an update. This works for the table itself and the "Sort fields" option, but the "Hide fields" setting is not picking up the updated columns. See the annotated screenshot below:
- (1) At first
EuiDataGrid gets mounted with 2 columns
- (2) Changing the form to have
neighbourhood as additional column updates the table itself (3) and the sorting options (5), but "Hide fields" still has the original 2 columns (4)

The issue can be reproduced using the branch from this PR: elastic/kibana#52510
In the transforms feature in the Kibana management section, a user can specify a persistent data transformation. In the wizard to create a transform we show a preview of the expected transform. It previews settings selected in the wizard's form, therefor the columns can change on an update. This works for the table itself and the "Sort fields" option, but the "Hide fields" setting is not picking up the updated columns. See the annotated screenshot below:
EuiDataGridgets mounted with 2 columnsneighbourhoodas additional column updates the table itself (3) and the sorting options (5), but "Hide fields" still has the original 2 columns (4)The issue can be reproduced using the branch from this PR: elastic/kibana#52510