fix(try-it-out): stringify numerical initial values in ParameterRow (#4767)

* add failing tests
* coerce initial values to string
* only convert numbers to strings when setting parameter values
This commit is contained in:
kyle
2018-07-27 01:17:36 -07:00
committed by GitHub
parent 8cde08bd83
commit 955352251b
4 changed files with 105 additions and 3 deletions

View File

@@ -780,4 +780,12 @@ export function stringify(thing) {
}
return thing.toString()
}
export function numberToString(thing) {
if(typeof thing === "number") {
return thing.toString()
}
return thing
}