fix: routing broken when naving to scereen with spaces

This commit is contained in:
Michael Shanks 2020-07-01 16:44:24 +01:00
parent c5eae1ec2f
commit fcdcd16116
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@
if ($leftover) { if ($leftover) {
// Get the correct screen children. // Get the correct screen children.
const screenChildren = $store.pages[$params.page]._screens.find( const screenChildren = $store.pages[$params.page]._screens.find(
screen => screen.props._instanceName === $params.screen screen =>
(screen.props._instanceName === $params.screen
|| screen.props._instanceName === decodeURIComponent($params.screen))
).props._children ).props._children
findComponent(componentIds, screenChildren) findComponent(componentIds, screenChildren)
} }