From 877668b6293a4f5a50b5da9d1c0677cf55fce7c0 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Mon, 2 Sep 2024 18:29:00 +0800 Subject: [PATCH] hotfix --- app/store/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/plugin.ts b/app/store/plugin.ts index d7b0de255..cad733a7e 100644 --- a/app/store/plugin.ts +++ b/app/store/plugin.ts @@ -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,