mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +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:
@@ -112,12 +112,15 @@ export default {
|
||||
Array.isArray(colnames) && Array.isArray(coltypes)
|
||||
? colnames
|
||||
.filter(
|
||||
(colname: string, index: number) =>
|
||||
(_: string, index: number) =>
|
||||
coltypes[index] === GenericDataType.Numeric,
|
||||
)
|
||||
.map(colname => ({
|
||||
.map((colname: string | number) => ({
|
||||
value: colname,
|
||||
label: verboseMap[colname] ?? colname,
|
||||
label:
|
||||
(Array.isArray(verboseMap)
|
||||
? verboseMap[colname as number]
|
||||
: verboseMap[colname as string]) ?? colname,
|
||||
}))
|
||||
: [];
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user