From bef724546a5e4777ea72d0403e1ac0a06b627941 Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Mon, 29 Jul 2019 13:01:38 +0700 Subject: [PATCH] only set environment when playground enabled --- templates/winter.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/winter.svelte b/templates/winter.svelte index cc4bd74b..e52e7fd8 100644 --- a/templates/winter.svelte +++ b/templates/winter.svelte @@ -58,7 +58,7 @@ } $: currentAction = actions[index]; - $: environment = config && config.playground.environments[$env]; + $: environment = config.playground.enabled && config.playground.environments[$env]; if (config.playground.enabled) { const savedEnv = getEnv();