Skip to content

Commit

Permalink
resolve small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Oct 12, 2023
1 parent cfb3b15 commit e9b991d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e9b991d

Please sign in to comment.