Fix issue loading app previews

This commit is contained in:
Andrew Kingston 2022-04-28 12:18:08 +01:00
parent 1fb1e70b28
commit d94b30cb1e
1 changed files with 2 additions and 2 deletions

View File

@ -50,14 +50,14 @@ const createScreenStore = () => {
let navigationProps = {
navigation: "None",
}
if (activeScreen.showNavigation) {
if (activeScreen?.showNavigation) {
navigationProps = $appStore.application?.navigation
// Legacy - if this is a legacy screen without any navigation
// settings fall back to just showing the app title
if (!navigationProps) {
navigationProps = {
title: activeScreen.navigation ?? $appStore.application?.name,
title: activeScreen?.navigation ?? $appStore.application?.name,
}
}
if (!navigationProps.navigation) {