Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Pass dashboardId to control
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Nov 12, 2021
1 parent 6aee3ac commit 6364ec7
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 6364ec7

Please sign in to comment.