From 7534ada672822e86d0961a4addfb5254edd07970 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Mon, 19 Jun 2023 17:25:10 +0300 Subject: [PATCH] Fix multiple env select (#4011) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a bug with the multiple env select breaking playground ## About the changes Closes # ### Important files ## Discussion points Signed-off-by: andreas-unleash --- .../PlaygroundConnectionFieldset.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx index b694d3e375..4bfaa6e12f 100644 --- a/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundForm/PlaygroundConnectionFieldset/PlaygroundConnectionFieldset.tsx @@ -113,7 +113,6 @@ export const PlaygroundConnectionFieldset: VFC< )} size="small" - value={environmentOptions.filter(({ id }) => - environments.includes(id) - )} + value={ + environmentOptions.filter(({ id }) => + environments.includes(id) + )[0] + } onChange={onEnvironmentsChange} />