mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(charts): Table chart shows an error on row limit (#37218)
This commit is contained in:
@@ -17,7 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { t } from '@apache-superset/core';
|
||||
import { validateInteger, validateNonEmpty } from '@superset-ui/core';
|
||||
import {
|
||||
validateInteger,
|
||||
validateNonEmpty,
|
||||
withLabel,
|
||||
} from '@superset-ui/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import {
|
||||
ControlPanelConfig,
|
||||
@@ -66,7 +70,7 @@ const config: ControlPanelConfig = {
|
||||
default: 5,
|
||||
choices: formatSelectOptionsForRange(5, 20, 5),
|
||||
description: t('The number of bins for the histogram'),
|
||||
validators: [validateInteger],
|
||||
validators: [withLabel(validateInteger, t('Bins'))],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user