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

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Mar 28, 2020
1 parent e3ff424 commit 18f4160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/superset-ui-validator/src/validateNonEmpty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { t } from '@superset-ui/translation';

export default function isNotEmpty(v: unknown) {
export default function validateNonEmpty(v: unknown) {
if (v === null || typeof v === 'undefined' || v === '' || (Array.isArray(v) && v.length === 0)) {
return t('cannot be empty');
}
Expand Down

0 comments on commit 18f4160

Please sign in to comment.