Skip to content

Commit

Permalink
require a series on a bar chart in the UI (apache#8726)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored and Erik Ritter committed Dec 3, 2019
1 parent 003e98c commit f055231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/assets/src/explore/controlPanels/DistBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { nonEmpty } from '../validators';

export default {
controlPanelSections: [
Expand Down Expand Up @@ -55,6 +56,7 @@ export default {
controlOverrides: {
groupby: {
label: t('Series'),
validators: [nonEmpty],
},
columns: {
label: t('Breakdowns'),
Expand Down

0 comments on commit f055231

Please sign in to comment.