diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-28 01:52:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-28 01:52:14 +0800 |
commit | ceff5c9c2b0af9506ac281febf7fd487c05650d7 (patch) | |
tree | ffa9f56570dad5f2c7bb9ab30113d2fdeceff82c | |
parent | dddfe8ae50f315159143dfbd8e5dbfaf75de9210 (diff) | |
download | dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar.gz dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar.bz2 dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar.lz dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar.xz dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.tar.zst dexon-sol-tools-ceff5c9c2b0af9506ac281febf7fd487c05650d7.zip |
Rename for clarity
-rw-r--r-- | packages/website/ts/pages/documentation/doc_page.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx index 6f029b6a2..87a806b2b 100644 --- a/packages/website/ts/pages/documentation/doc_page.tsx +++ b/packages/website/ts/pages/documentation/doc_page.tsx @@ -146,9 +146,9 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> { docAgnosticFormat = versionDocObj as DocAgnosticFormat; // HACK: need to modify docsInfo like convertToDocAgnosticFormat() would do this.props.docsInfo.menu.Contracts = []; - _.each(docAgnosticFormat, (docObj, contractName) => { - this.props.docsInfo.sections[contractName] = contractName; - this.props.docsInfo.menu.Contracts.push(contractName); + _.each(docAgnosticFormat, (_docObj, sectionName) => { + this.props.docsInfo.sections[sectionName] = sectionName; + this.props.docsInfo.menu.Contracts.push(sectionName); }); } |