Skip to content

Commit

Permalink
fix: Render AsyncAPI 3+ properly with BaseLayout (#5358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rzepin committed Feb 9, 2025
1 parent b35817d commit 2abb111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/swagger-ui-adapter/wrap-components/BaseLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const BaseLayoutWrapper = (Original, system) => {
);
}

if (editorSelectors.selectIsContentTypeAsyncAPI2()) {
if (editorSelectors.selectIsContentTypeAsyncAPI()) {
return <EditorPreviewAsyncAPI />;
}

Expand All @@ -36,7 +36,7 @@ const BaseLayoutWrapper = (Original, system) => {
getComponent: PropTypes.func.isRequired,
editorSelectors: PropTypes.shape({
selectIsContentTypeDetectionInProgress: PropTypes.func.isRequired,
selectIsContentTypeAsyncAPI2: PropTypes.func.isRequired,
selectIsContentTypeAsyncAPI: PropTypes.func.isRequired,
selectIsContentTypeAPIDesignSystems: PropTypes.func.isRequired,
}).isRequired,
};
Expand Down

0 comments on commit 2abb111

Please sign in to comment.