mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
feat(fe): upgrade superset-frontend to Typescript v5 (#31979)
Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -415,7 +415,12 @@ const config: ControlPanelConfig = {
|
||||
const chartStatus = chart?.chartStatus;
|
||||
const metricColumn = values.map(value => {
|
||||
if (typeof value === 'string') {
|
||||
return { value, label: verboseMap[value] ?? value };
|
||||
return {
|
||||
value,
|
||||
label: Array.isArray(verboseMap)
|
||||
? value
|
||||
: verboseMap[value],
|
||||
};
|
||||
}
|
||||
return { value: value.label, label: value.label };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user