Browse Source

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

gh-pages
Andrew Kingston 5 years ago
parent
commit
a895771179
  1. 2
      packages/client/src/store/builder.js

2
packages/client/src/store/builder.js

@ -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
}

Loading…
Cancel
Save