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) { fromString(value) {
if (typeof value !== 'string') { if (value === null) {
return value return true
} }
if (value.match(/^\d*(\.\d+)?$/)) { if (value.match(/^\d*(\.\d+)?$/)) {