Ensure fallback is alway selected when no route matches.
This commit is contained in:
parent
063cb0f41f
commit
f42cfd9fa2
|
@ -39,7 +39,7 @@ export const screenRouter = (screens, onScreenSelected) => {
|
|||
|
||||
if (current !== -1) {
|
||||
onScreenSelected(screens[current], store, _url)
|
||||
} else if (fallback) {
|
||||
} else {
|
||||
onScreenSelected(screens[fallback], store, _url)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue