mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: null value and empty string in filter (#18171)
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
|
||||
// ATTENTION: If you change any constants, make sure to also change constants.py
|
||||
|
||||
export const EMPTY_STRING = '<empty string>';
|
||||
export const NULL_STRING = '<NULL>';
|
||||
export const TRUE_STRING = 'TRUE';
|
||||
export const FALSE_STRING = 'FALSE';
|
||||
@@ -61,7 +62,7 @@ export function optionLabel(opt) {
|
||||
return NULL_STRING;
|
||||
}
|
||||
if (opt === '') {
|
||||
return '<empty string>';
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
if (opt === true) {
|
||||
return '<true>';
|
||||
|
||||
Reference in New Issue
Block a user