Skip to content

Commit 3b2a512

Browse files
authored
fix(swagger-ui-adapter): render AsyncAPI 3.x Descriptions (#5358) (#5359)
Only AsyncAPI 2.x was supported before.
1 parent c5eb415 commit 3b2a512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/swagger-ui-adapter/wrap-components/BaseLayout.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const BaseLayoutWrapper = (Original, system) => {
2020
);
2121
}
2222

23-
if (editorSelectors.selectIsContentTypeAsyncAPI2()) {
23+
if (editorSelectors.selectIsContentTypeAsyncAPI()) {
2424
return <EditorPreviewAsyncAPI />;
2525
}
2626

@@ -36,7 +36,7 @@ const BaseLayoutWrapper = (Original, system) => {
3636
getComponent: PropTypes.func.isRequired,
3737
editorSelectors: PropTypes.shape({
3838
selectIsContentTypeDetectionInProgress: PropTypes.func.isRequired,
39-
selectIsContentTypeAsyncAPI2: PropTypes.func.isRequired,
39+
selectIsContentTypeAsyncAPI: PropTypes.func.isRequired,
4040
selectIsContentTypeAPIDesignSystems: PropTypes.func.isRequired,
4141
}).isRequired,
4242
};

0 commit comments

Comments
 (0)