Skip to content

Commit 0c6b1ad

Browse files
committed
add back default command and args
1 parent b97acb9 commit 0c6b1ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

client/src/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,12 @@ const App = () => {
190190
.then((response) => response.json())
191191
.then((data) => {
192192
setEnv(data.defaultEnvironment);
193-
setCommand(data.defaultCommand);
194-
setArgs(data.defaultArgs);
193+
if (data.defaultCommand) {
194+
setCommand(data.defaultCommand);
195+
}
196+
if (data.defaultArgs) {
197+
setArgs(data.defaultArgs);
198+
}
195199
})
196200
.catch((error) =>
197201
console.error("Error fetching default environment:", error),

0 commit comments

Comments
 (0)