Skip to content

Commit 64d2fea

Browse files
authored
Merge pull request modelcontextprotocol#62 from modelcontextprotocol/ashwin/defaults
add back default command and args
2 parents 31630b2 + 0c6b1ad commit 64d2fea

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)