Pass dashboardId to control (#1467)

This commit is contained in:
Geido
2021-11-12 14:31:19 +02:00
committed by Yongjie Zhao
parent 85e7d02820
commit 22d976a600

View File

@@ -477,6 +477,9 @@ const color_scheme: SharedControlConfig<'ColorSchemeControl'> = {
choices: () => categoricalSchemeRegistry.keys().map(s => [s, s]),
description: t('The color scheme for rendering chart'),
schemes: () => categoricalSchemeRegistry.getMap(),
mapStateToProps: state => ({
dashboardId: state?.form_data?.dashboardId,
}),
};
const enableExploreDnd = isFeatureEnabled(