Skip to content

Commit

Permalink
Merge pull request #279 from compute-tooling/fix-falsy-metaparameters
Browse files Browse the repository at this point in the history
Fix: handle falsy meta parameters
  • Loading branch information
hdoupe authored Apr 7, 2020
2 parents 0621531 + a46f16a commit e2cc902
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ParamTools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export function convertToFormik(
if (
Array.isArray(meta_parameters[mp_name]) &&
(meta_parameters[mp_name] as Array<ValueObject>).length >= 1 &&
!!meta_parameters[mp_name][0].value
"value" in meta_parameters[mp_name][0]
) {
mpVal = meta_parameters[mp_name][0].value;
} else {
Expand Down
2 changes: 1 addition & 1 deletion static/js/sim.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/sim.js.map

Large diffs are not rendered by default.

0 comments on commit e2cc902

Please sign in to comment.