FIX: ensures explorer is using default values when provided (#240)

This commit is contained in:
Joffrey JAFFEUX
2023-04-17 09:06:27 -05:00
committed by GitHub
parent 98e96fccc2
commit 97d60de92a
3 changed files with 45 additions and 6 deletions
@@ -69,13 +69,13 @@ export default class ParamInput extends Component {
}
} else {
// if no parsed params then get and set default values
const params = this.args.params;
const defaultValue = this.args.info.default;
this.value =
this.args.info.type === "category_id"
? this.dasherizeCategoryId(params[identifier])
: params[identifier];
this.boolValue = params[identifier] !== "false";
this.nullableBoolValue = params[identifier];
? this.dasherizeCategoryId(defaultValue)
: defaultValue;
this.boolValue = defaultValue !== "false";
this.nullableBoolValue = defaultValue;
}
}