fix loadFromLocalStorage
This commit is contained in:
parent
57f952116d
commit
78ab5b8ed6
@ -270,7 +270,7 @@ const loadFromLocalStorage = (key, default_option) => {
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
if (value === null) {
|
if (value === null) {
|
||||||
return default_option ? default_option : null;
|
return (default_option === "" || default_option) ? default_option : null;
|
||||||
} else
|
} else
|
||||||
if (value === "") {
|
if (value === "") {
|
||||||
return value;
|
return value;
|
||||||
|
Loading…
Reference in New Issue
Block a user