From 559caee642a6bd24a08c56cda69f11c833274b16 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Thu, 22 Jun 2023 11:55:15 +0300 Subject: [PATCH] fix: multi env select should always have an environment selected (#4061) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About the changes Closes # ### Important files ## Discussion points Signed-off-by: andreas-unleash --- .../src/component/playground/Playground/AdvancedPlayground.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx index 5271826b39..e50f1a1149 100644 --- a/frontend/src/component/playground/Playground/AdvancedPlayground.tsx +++ b/frontend/src/component/playground/Playground/AdvancedPlayground.tsx @@ -62,7 +62,7 @@ export const AdvancedPlayground: VFC<{ if (environments?.length === 0) { setEnvironments([resolveDefaultEnvironment(availableEnvironments)]); } - }, [availableEnvironments]); + }, [JSON.stringify(environments), JSON.stringify(availableEnvironments)]); useEffect(() => { if (searchParamsLength > 0) {