mirror of
https://github.com/apache/superset.git
synced 2026-06-01 21:59:26 +00:00
feat: Dynamic currency (#36416)
This commit is contained in:
committed by
GitHub
parent
896947c787
commit
f4474b2e3e
@@ -82,6 +82,7 @@ export default function ColumnConfigControl<T extends ColumnConfig>({
|
||||
});
|
||||
}
|
||||
const theme = useTheme();
|
||||
|
||||
const columnConfigs = useMemo(() => {
|
||||
const configs: Record<string, ColumnConfigInfo> = {};
|
||||
colnames?.forEach((col, idx) => {
|
||||
@@ -100,6 +101,7 @@ export default function ColumnConfigControl<T extends ColumnConfig>({
|
||||
const [showAllColumns, setShowAllColumns] = useState(false);
|
||||
|
||||
const getColumnInfo = (col: string) => columnConfigs[col] || {};
|
||||
|
||||
const setColumnConfig = (col: string, config: T) => {
|
||||
if (onChange) {
|
||||
// Only keep configs for known columns
|
||||
|
||||
Reference in New Issue
Block a user