From a895771179c997ef3ab4e1ada9235dfd5847cfac Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 19 Aug 2021 16:06:33 +0100 Subject: [PATCH] Fix bug determining whether an app is inside the preview or not --- packages/client/src/store/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/store/builder.js b/packages/client/src/store/builder.js index 0fa109fc1c..530f49843a 100644 --- a/packages/client/src/store/builder.js +++ b/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 }