Ensure fallback is alway selected when no route matches.
This commit is contained in:
parent
3c51f731ef
commit
133339483e
|
@ -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