Skip to content

Commit

Permalink
Pass dashboardId to control (apache-superset#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored Nov 12, 2021
1 parent 3da1629 commit 796e2da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 796e2da

Please sign in to comment.