diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/Documents.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/Documents.jsx index 71db7851c96..9e398de3c8d 100644 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/Documents.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/Documents.jsx @@ -159,7 +159,7 @@ function Documents(props) { const promisedApi = restApi.getDocumentsByAPIId(apiId); promisedApi .then((response) => { - const overviewDoc = response.body.list.filter((item) => item.otherTypeName !== '_overview'); + const overviewDoc = response.body.list.filter((item) => item.otherTypeName !== 'overview'); if (api.type === 'HTTP') { const swaggerDoc = { documentId: 'default', name: 'Default', type: '' }; overviewDoc.unshift(swaggerDoc); diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/View.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/View.jsx index 87928b72215..9fa9ce3cc08 100644 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/View.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Documents/View.jsx @@ -191,7 +191,7 @@ function View(props) { }; return ( <> - {(doc.summary && doc.otherTypeName !== '_overview') && ( + {(doc.summary && doc.otherTypeName !== 'overview') && ( {doc.summary} diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Overview.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Overview.jsx index 8ad2d4a47cc..83498bcc489 100644 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Overview.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/Overview.jsx @@ -222,7 +222,7 @@ function Overview() { const restApi = new API(); return restApi.getDocumentsByAPIId(api.id) .then((response) => { - const overviewDoc = response.body.list.filter((item) => item.otherTypeName === '_overview'); + const overviewDoc = response.body.list.filter((item) => item.otherTypeName === 'overview'); if (overviewDoc.length > 0) { // We can override the UI with this content setOverviewDocOverride(overviewDoc[0]); // Only one doc we can render diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Listing.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Listing.jsx index fbaa8d30f7c..acd0fb34955 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Listing.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Documents/Listing.jsx @@ -167,7 +167,7 @@ class Listing extends React.Component { const apiProduct = new APIProduct(); const docs = apiProduct.getDocuments(api.id); docs.then((response) => { - const documentList = response.body.list.filter((item) => item.otherTypeName !== '_overview'); + const documentList = response.body.list.filter((item) => item.otherTypeName !== 'overview'); documentList.sort(getSortOrder('name')); this.setState({ docs: documentList }); }).catch((errorResponse) => { @@ -184,7 +184,7 @@ class Listing extends React.Component { const newApi = new API(); const docs = newApi.getDocuments(api.id); docs.then((response) => { - const documentList = response.body.list.filter((item) => item.otherTypeName !== '_overview'); + const documentList = response.body.list.filter((item) => item.otherTypeName !== 'overview'); documentList.sort(getSortOrder('name')); this.setState({ docs: documentList }); }).catch((errorResponse) => { @@ -610,4 +610,4 @@ Listing.propTypes = { }).isRequired, }; -export default injectIntl(withAPI(withStyles(styles)(Listing))); \ No newline at end of file +export default injectIntl(withAPI(withStyles(styles)(Listing)));