Fix crash when searching screens and selecting layouts
This commit is contained in:
parent
d68ee14ed3
commit
ff5aba19f7
|
@ -30,7 +30,8 @@
|
||||||
$: filteredScreens = getFilteredScreens(allScreens, $screenSearchString)
|
$: filteredScreens = getFilteredScreens(allScreens, $screenSearchString)
|
||||||
$: hasSearchMatch = $screenSearchString && filteredScreens.length > 0
|
$: hasSearchMatch = $screenSearchString && filteredScreens.length > 0
|
||||||
$: noSearchMatch = $screenSearchString && !filteredScreens.length
|
$: noSearchMatch = $screenSearchString && !filteredScreens.length
|
||||||
$: routeSelected = route.subpaths[selectedScreen.routing.route] !== undefined
|
$: routeSelected =
|
||||||
|
route.subpaths[selectedScreen?.routing?.route] !== undefined
|
||||||
$: routeOpened = routeManuallyOpened || routeSelected || hasSearchMatch
|
$: routeOpened = routeManuallyOpened || routeSelected || hasSearchMatch
|
||||||
|
|
||||||
const changeScreen = screenId => {
|
const changeScreen = screenId => {
|
||||||
|
|
Loading…
Reference in New Issue