fix loadFromLocalStorage
This commit is contained in:
parent
1930a8df7b
commit
14f3896156
@ -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