Merge pull request #4681 from Budibase/fix/asset-type-selection

Fix asset type selection
This commit is contained in:
Andrew Kingston 2022-02-25 13:38:10 +00:00 committed by GitHub
commit a216a44827
2 changed files with 9 additions and 1 deletions

View File

@ -45,6 +45,14 @@
store.actions.screens.select(id)
}
}
// If we didn't find a valid asset, just update the preview type
if (!id) {
store.update(state => {
state.currentFrontEndType = assetType
return state
})
}
}
</script>

View File

@ -108,7 +108,7 @@
<!-- Actual app -->
<div id="app-root">
<CustomThemeWrapper>
{#key $screenStore.activeLayout._id}
{#key `${$screenStore.activeLayout._id}-${$builderStore.previewType}`}
<Component
isLayout
instance={$screenStore.activeLayout.props}