aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-09-28 06:32:29 +0800
committerFabio Berger <me@fabioberger.com>2018-09-28 06:32:29 +0800
commit8531f52456169d6b2103757e8e511710c58a54d0 (patch)
tree211e54d4bc803958247b34e7e6de0278f8da84dd /packages
parent092b184f4534a42d36d30d2d10b34b47255d2ee3 (diff)
downloaddexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar.gz
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar.bz2
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar.lz
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar.xz
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.tar.zst
dexon-sol-tools-8531f52456169d6b2103757e8e511710c58a54d0.zip
Switch over remaining usage of `sections.types` for `typeSectionName`
Diffstat (limited to 'packages')
-rw-r--r--packages/react-docs/src/docs_info.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/react-docs/src/docs_info.ts b/packages/react-docs/src/docs_info.ts
index bf6aa07a7..092a8c266 100644
--- a/packages/react-docs/src/docs_info.ts
+++ b/packages/react-docs/src/docs_info.ts
@@ -84,11 +84,11 @@ export class DocsInfo {
return menuSubsectionsBySection;
}
public getTypeDefinitionsByName(docAgnosticFormat: DocAgnosticFormat): { [name: string]: TypeDefinitionByName } {
- if (_.isUndefined(this.sections.types)) {
+ if (_.isUndefined(docAgnosticFormat[this.typeSectionName])) {
return {};
}
- const section = docAgnosticFormat[this.sections.types];
+ const section = docAgnosticFormat[this.typeSectionName];
const typeDefinitionByName = _.keyBy(section.types, 'name') as any;
return typeDefinitionByName;
}