diff --git a/.changeset/lucky-geckos-talk.md b/.changeset/lucky-geckos-talk.md new file mode 100644 index 000000000..7820ad69d --- /dev/null +++ b/.changeset/lucky-geckos-talk.md @@ -0,0 +1,4 @@ +--- +"@asyncapi/studio": patch +--- +fix studio breaking when trying to generate code/document diff --git a/apps/studio/src/components/Modals/Generator/TemplateParameters.tsx b/apps/studio/src/components/Modals/Generator/TemplateParameters.tsx index afc4b97ff..862f7e783 100644 --- a/apps/studio/src/components/Modals/Generator/TemplateParameters.tsx +++ b/apps/studio/src/components/Modals/Generator/TemplateParameters.tsx @@ -106,7 +106,7 @@ export const TemplateParametersSans: ForwardRefRenderFunction { - if (supportedProtocols.includes(server.protocol())) availableServers.push(serverName); + if (server.protocol && supportedProtocols.includes(server.protocol())) availableServers.push(serverName); }); if (supportedProtocols.length && availableServers.length === 0) {