live settings: treat empty string as empty value (#805)
This commit is contained in:
parent
6d097b648d
commit
cd39b67ef1
2 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ class LiveSettingValidator:
|
|||
def get_error(self):
|
||||
check_fn_name = f"_check_{self.live_setting.name.lower()}"
|
||||
|
||||
if self.live_setting.value is None:
|
||||
if self.live_setting.value in (None, ""):
|
||||
return "Empty"
|
||||
|
||||
# skip validation if there's no handler for it
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { NULL_VALUE } from './LiveSettings.config';
|
||||
|
||||
export function normalizeValue(value: string) {
|
||||
if (value === null) {
|
||||
if (value === null || value === '') {
|
||||
return NULL_VALUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue