fix: null value and empty string in filter (#18171)

This commit is contained in:
Yongjie Zhao
2022-01-27 22:58:06 +08:00
committed by GitHub
parent dbe0a8b519
commit 20b4ae1ef9
10 changed files with 102 additions and 41 deletions

View File

@@ -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>';