aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-27 02:09:22 +0800
committerFabio Berger <me@fabioberger.com>2018-02-27 02:09:22 +0800
commitecba95250d0bfc5b4ab0950ef490a4f262672e6c (patch)
treecdc30a1ff6b392aeb2f07fa5f2864a5550eb22a5 /packages/website
parentdd116b3cd62b59772326936356bce2d08fb41439 (diff)
downloaddexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar.gz
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar.bz2
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar.lz
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar.xz
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.tar.zst
dexon-sol-tools-ecba95250d0bfc5b4ab0950ef490a4f262672e6c.zip
Update missed docsJsonRoot variables
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/pages/documentation/doc_page.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx
index ff22a7236..306ad8542 100644
--- a/packages/website/ts/pages/documentation/doc_page.tsx
+++ b/packages/website/ts/pages/documentation/doc_page.tsx
@@ -85,7 +85,7 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> {
private async _fetchJSONDocsFireAndForgetAsync(preferredVersionIfExists?: string): Promise<void> {
const s3BucketName = displayNameToS3BucketName[this.props.docsInfo.displayName];
const docsJsonRoot = `${constants.S3_BUCKET_ROOT}/${s3BucketName}`;
- const versionToFileName = await docUtils.getVersionToFileNameAsync(this.props.docsInfo.docsJsonRoot);
+ const versionToFileName = await docUtils.getVersionToFileNameAsync(docsJsonRoot);
const versions = _.keys(versionToFileName);
this.props.dispatcher.updateAvailableDocVersions(versions);
const sortedVersions = semverSort.desc(versions);
@@ -101,10 +101,7 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> {
this.props.dispatcher.updateCurrentDocsVersion(versionToFetch);
const versionFileNameToFetch = versionToFileName[versionToFetch];
- const versionDocObj = await docUtils.getJSONDocFileAsync(
- versionFileNameToFetch,
- this.props.docsInfo.docsJsonRoot,
- );
+ const versionDocObj = await docUtils.getJSONDocFileAsync(versionFileNameToFetch, docsJsonRoot);
const docAgnosticFormat = this.props.docsInfo.convertToDocAgnosticFormat(versionDocObj as DoxityDocObj);
if (!this._isUnmounted) {