1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

router not properly matching parameterized route

This commit is contained in:
Michael Shanks 2020-02-24 14:57:34 +00:00
parent cbd33daae8
commit 6233c01f4f

View file

@ -25,7 +25,7 @@ export const screenRouter = (screens, onScreenSelected, appRootPath) => {
const params = {}
if (current === -1) {
routes.forEach(([p], i) => {
routes.forEach((p, i) => {
const pm = regexparam(p)
const matches = pm.pattern.exec(_url)