Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 2, 2024
1 parent f652f73 commit 877668b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const FunctionToolService = {
? ` Bearer ${plugin?.authToken}`
: plugin?.authToken;
const definition = yaml.load(plugin.content) as any;
const serverURL = definition.servers?.[0]?.url;
const serverURL = definition?.servers?.[0]?.url;
const baseURL = !!plugin?.usingProxy ? "/api/proxy" : serverURL;
const api = new OpenAPIClientAxios({
definition: yaml.load(plugin.content) as any,
Expand Down

0 comments on commit 877668b

Please sign in to comment.