From b10bbd7e2fad5eb08322cf2b586741d8f2af3a9b Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 11 Jul 2022 13:13:39 +0100 Subject: [PATCH] Ensure devtools are never shown in the app preview --- packages/client/src/components/ClientApp.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index 178ef3d026..dcf4f54557 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -43,7 +43,10 @@ let permissionError = false // Determine if we should show devtools or not - $: showDevTools = $devToolsStore.enabled && !$routeStore.queryParams?.peek + $: showDevTools = + !$builderStore.inBuilder && + $devToolsStore.enabled && + !$routeStore.queryParams?.peek // Handle no matching route $: {