Browse Source
Merge pull request #4681 from Budibase/fix/asset-type-selection
Fix asset type selection
pull/4708/head
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
-
packages/builder/src/pages/builder/app/[application]/design/[assetType]/index.svelte
-
packages/client/src/components/ClientApp.svelte
|
|
|
@ -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> |
|
|
|
|
|
|
|
|
|
|
|
@ -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} |
|
|
|
|