aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-26 23:19:53 +0800
committerFabio Berger <me@fabioberger.com>2018-10-26 23:19:53 +0800
commit81fb8d614f1ea4ad4ae01cf7426e8653d18efccc (patch)
tree36c7a7eaa7ad3a7acfb0047b244c534c2e588852
parent3e75daafa1aeba8bada985793c7906aedc553006 (diff)
downloaddexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar.gz
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar.bz2
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar.lz
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar.xz
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.tar.zst
dexon-sol-tools-81fb8d614f1ea4ad4ae01cf7426e8653d18efccc.zip
chore: Make `External exports` clickable on sidebar
-rw-r--r--packages/react-docs/src/docs_info.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/react-docs/src/docs_info.ts b/packages/react-docs/src/docs_info.ts
index 54b59ef1f..76f7784ba 100644
--- a/packages/react-docs/src/docs_info.ts
+++ b/packages/react-docs/src/docs_info.ts
@@ -10,6 +10,7 @@ import {
SectionsMap,
SupportedDocJson,
} from './types';
+import { constants } from './utils/constants';
export class DocsInfo {
public id: string;
@@ -64,7 +65,7 @@ export class DocsInfo {
const docSections = _.keys(this.sections);
_.each(docSections, sectionName => {
const docSection = docAgnosticFormat[sectionName];
- if (_.isUndefined(docSection)) {
+ if (_.isUndefined(docSection) || sectionName === constants.EXTERNAL_EXPORTS_SECTION_NAME) {
return; // no-op
}