diff --git a/rust/perspective-viewer/src/rust/components/column_selector/config_selector.rs b/rust/perspective-viewer/src/rust/components/column_selector/config_selector.rs index 57b0b2fc46..485a31b72d 100644 --- a/rust/perspective-viewer/src/rust/components/column_selector/config_selector.rs +++ b/rust/perspective-viewer/src/rust/components/column_selector/config_selector.rs @@ -514,6 +514,7 @@ impl Component for ConfigSelector { html_nested! { @@ -540,6 +541,7 @@ impl Component for ConfigSelector { html_nested! { diff --git a/rust/perspective-viewer/src/rust/components/column_selector/filter_column.rs b/rust/perspective-viewer/src/rust/components/column_selector/filter_column.rs index 55edbbb161..7cb58bd324 100644 --- a/rust/perspective-viewer/src/rust/components/column_selector/filter_column.rs +++ b/rust/perspective-viewer/src/rust/components/column_selector/filter_column.rs @@ -458,6 +458,8 @@ impl Component for FilterColumn { } .unwrap_or_default(); + let final_col_type = col_type.expect("Unknown column"); + html! {
- + // + { filter.column().to_owned() }
- + + // { ctx.props().column.clone() }
diff --git a/rust/perspective-viewer/src/rust/components/column_selector/sort_column.rs b/rust/perspective-viewer/src/rust/components/column_selector/sort_column.rs index bc30aa04f9..290b8355c9 100644 --- a/rust/perspective-viewer/src/rust/components/column_selector/sort_column.rs +++ b/rust/perspective-viewer/src/rust/components/column_selector/sort_column.rs @@ -11,7 +11,7 @@ // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ use perspective_client::config::*; -use perspective_client::ColumnType; +// use perspective_client::ColumnType; use web_sys::*; use yew::prelude::*; @@ -101,6 +101,13 @@ impl Component for SortColumn { move |_event| dragdrop.notify_drag_end() }); + let col_type = ctx + .props() + .session + .metadata() + .get_column_table_type(&ctx.props().sort.0.to_owned()) + .expect("Unknown column"); + html! {
- + + // { ctx.props().sort.0.to_owned() }