File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
apps/studio/src/components/Modals/Generator Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @asyncapi/studio " : patch
3+ ---
4+ fix studio breaking when trying to generate code/document
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export const TemplateParametersSans: ForwardRefRenderFunction<TemplateParameters
106106 const servers = document ?. servers ( ) ;
107107 const availableServers : string [ ] = [ ] ;
108108 Object . entries ( servers || { } ) . forEach ( ( [ serverName , server ] ) => {
109- if ( supportedProtocols . includes ( server . protocol ( ) ) ) availableServers . push ( serverName ) ;
109+ if ( server . protocol && supportedProtocols . includes ( server . protocol ( ) ) ) availableServers . push ( serverName ) ;
110110 } ) ;
111111
112112 if ( supportedProtocols . length && availableServers . length === 0 ) {
You can’t perform that action at this time.
0 commit comments