mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
The function-component SaveModal typed onDashboardChange as taking
`{ label; value } | null`, which TS2322-rejected against AsyncSelect's
onChange signature — the antd callback supplies the broader
`SelectValue` (which includes `undefined`).
Widen the parameter to `SelectValue` and narrow to the expected
labeled-value shape inside the body; runtime behavior is unchanged
(single-mode AsyncSelect always emits a labeled option or
null/undefined).