From e9b991d60a8194215847a600df505177d358b883 Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani Date: Thu, 12 Oct 2023 13:49:13 +0100 Subject: [PATCH] resolve small bug --- src/lib/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util.ts b/src/lib/util.ts index f83f71f11..3128efbd9 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -138,7 +138,7 @@ export const isRemoteServer = ( parsedAsyncAPI: AsyncAPIDocument, serverName: string ): boolean => { - const remoteServers = parsedAsyncAPI.extensions().get('x-remoteServers').value() + const remoteServers = parsedAsyncAPI.extensions().get('x-remoteServers')?.value() if (remoteServers) { return remoteServers.includes(serverName) }