Skip to content
Snippets Groups Projects
Commit 26e455bb authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'fix/no-mrf-transparency-crash' into 'develop'

after_store: Fix failing to parse nodeinfo when mrf transparency is disabled

Closes #772

See merge request !1064
parents 12cd96bf 0dcc3bf2
No related branches found
No related tags found
2 merge requests!1074Update master with 2.0.0,!1064after_store: Fix failing to parse nodeinfo when mrf transparency is disabled
Pipeline #22931 passed
......@@ -221,9 +221,16 @@ const getNodeInfo = async ({ store }) => {
const frontendVersion = window.___pleromafe_commit_hash
store.dispatch('setInstanceOption', { name: 'frontendVersion', value: frontendVersion })
store.dispatch('setInstanceOption', { name: 'tagPolicyAvailable', value: metadata.federation.mrf_policies.includes('TagPolicy') })
const federation = metadata.federation
store.dispatch('setInstanceOption', {
name: 'tagPolicyAvailable',
value: typeof federation.mrf_policies === 'undefined'
? false
: metadata.federation.mrf_policies.includes('TagPolicy')
})
store.dispatch('setInstanceOption', { name: 'federationPolicy', value: federation })
store.dispatch('setInstanceOption', {
name: 'federating',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment