🐛 Fixed issue in utils::optionDefault
This commit is contained in:
parent
3a6d7c5680
commit
4eca204d6b
2 changed files with 5 additions and 3 deletions
|
@ -2,7 +2,7 @@ import optionType from "./optionType";
|
|||
|
||||
const optionDefault = option => {
|
||||
let type = optionType(option);
|
||||
switch (optionType(option)) {
|
||||
switch (type) {
|
||||
case "constant":
|
||||
return option;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue