router not properly matching parameterized route
This commit is contained in:
parent
35d5ae9ed8
commit
f68ac7577e
|
@ -25,7 +25,7 @@ export const screenRouter = (screens, onScreenSelected, appRootPath) => {
|
||||||
const params = {}
|
const params = {}
|
||||||
|
|
||||||
if (current === -1) {
|
if (current === -1) {
|
||||||
routes.forEach(([p], i) => {
|
routes.forEach((p, i) => {
|
||||||
const pm = regexparam(p)
|
const pm = regexparam(p)
|
||||||
const matches = pm.pattern.exec(_url)
|
const matches = pm.pattern.exec(_url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue