diff --git a/superset/assets/javascripts/explore/stores/controls.jsx b/superset/assets/javascripts/explore/stores/controls.jsx index eabd29fe771..325c8786924 100644 --- a/superset/assets/javascripts/explore/stores/controls.jsx +++ b/superset/assets/javascripts/explore/stores/controls.jsx @@ -729,6 +729,7 @@ export const controls = { type: 'SelectControl', freeForm: true, label: t('Row limit'), + validators: [v.integer], default: null, choices: formatSelectOptions(ROW_LIMIT_OPTIONS), }, @@ -737,6 +738,7 @@ export const controls = { type: 'SelectControl', freeForm: true, label: t('Series limit'), + validators: [v.integer], choices: formatSelectOptions(SERIES_LIMITS), default: 50, description: t('Limits the number of time series that get displayed'), diff --git a/superset/assets/javascripts/explore/stores/visTypes.js b/superset/assets/javascripts/explore/stores/visTypes.js index b13d4a787e4..ef3100375b8 100644 --- a/superset/assets/javascripts/explore/stores/visTypes.js +++ b/superset/assets/javascripts/explore/stores/visTypes.js @@ -610,7 +610,8 @@ export const visTypes = { label: t('Query'), expanded: true, controlSetRows: [ - ['series', 'metric', 'limit'], + ['series', 'metric'], + ['row_limit', null], ], }, {