add back default command and args
This commit is contained in:
@@ -190,8 +190,12 @@ const App = () => {
|
|||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
setEnv(data.defaultEnvironment);
|
setEnv(data.defaultEnvironment);
|
||||||
|
if (data.defaultCommand) {
|
||||||
setCommand(data.defaultCommand);
|
setCommand(data.defaultCommand);
|
||||||
|
}
|
||||||
|
if (data.defaultArgs) {
|
||||||
setArgs(data.defaultArgs);
|
setArgs(data.defaultArgs);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch((error) =>
|
.catch((error) =>
|
||||||
console.error("Error fetching default environment:", error),
|
console.error("Error fetching default environment:", error),
|
||||||
|
|||||||
Reference in New Issue
Block a user