Browse Source

Always update asset type when required, even if no assets of that type exist

pull/4681/head
Andrew Kingston 4 years ago
parent
commit
4eb4f20fb5
  1. 8
      packages/builder/src/pages/builder/app/[application]/design/[assetType]/index.svelte

8
packages/builder/src/pages/builder/app/[application]/design/[assetType]/index.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>

Loading…
Cancel
Save