Fix bug determining whether an app is inside the preview or not

This commit is contained in:
Andrew Kingston 2021-08-19 16:06:33 +01:00
parent 643952e119
commit a895771179
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ const createBuilderStore = () => {
const writableStore = writable(initialState)
const derivedStore = derived(writableStore, $state => {
// Avoid any of this logic if we aren't in the builder preview
if (!writableStore.inBuilder) {
if (!$state.inBuilder) {
return $state
}