Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit c4bb7dc

Browse files
committed
Fix issue with Gaia hub url property in api settings being undefined.
1 parent 08071e0 commit c4bb7dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/js/auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class AuthPage extends React.Component {
346346
appPrivateKey,
347347
this.state.collectionScopes,
348348
collectionsNode,
349-
this.props.api.gaiaHubConfig,
349+
this.props.api.gaiaHubUrl,
350350
this.props.identitySettings[identityIndex],
351351
this.updateIdentityCollectionSettings
352352
)

app/js/utils/collection-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function processCollectionScopes(
111111
appPrivateKey,
112112
collectionScopes,
113113
collectionsNode,
114-
gaiaHubConfig,
114+
gaiaHubUrl,
115115
identitySettings,
116116
updateIdentityCollectionSettings
117117
) {
@@ -123,15 +123,15 @@ export function processCollectionScopes(
123123
updateIdentityCollectionSettings
124124
)
125125
const hubConfigsPromise =
126-
getCollectionGaiaHubConfigs(collectionScopes, collectionsNode, gaiaHubConfig.server)
126+
getCollectionGaiaHubConfigs(collectionScopes, collectionsNode, gaiaHubUrl)
127127
return Promise.all([encryptionKeyPromise, hubConfigsPromise])
128128
.then(results => {
129129
const collectionKeys = results[0]
130130
const collectionHubConfigs = results[1]
131131
return updateAppCollectionKeys(
132132
collectionScopes,
133133
appPrivateKey,
134-
gaiaHubConfig.server,
134+
gaiaHubUrl,
135135
collectionKeys,
136136
collectionHubConfigs
137137
)

0 commit comments

Comments
 (0)