demos: fix parsing url query

This commit is contained in:
Philipp Kühn 2021-09-20 10:05:13 +02:00
parent a0e5eac9cc
commit cc586ce036

View File

@ -200,8 +200,8 @@ export default {
},
fromString(value) {
if (typeof value !== 'string') {
return value
if (value === null) {
return true
}
if (value.match(/^\d*(\.\d+)?$/)) {