From 0c6b1ad1d2dec9c0cdc989d44ba17c4faac79c67 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Tue, 19 Nov 2024 13:30:04 -0800 Subject: [PATCH] add back default command and args --- client/src/App.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 73a337a..5df8f4e 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -190,8 +190,12 @@ const App = () => { .then((response) => response.json()) .then((data) => { setEnv(data.defaultEnvironment); - setCommand(data.defaultCommand); - setArgs(data.defaultArgs); + if (data.defaultCommand) { + setCommand(data.defaultCommand); + } + if (data.defaultArgs) { + setArgs(data.defaultArgs); + } }) .catch((error) => console.error("Error fetching default environment:", error),