aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-02-13 22:35:46 +0300
committerrinpatch <rinpatch@sdf.org>2020-02-13 22:35:46 +0300
commit0dcc3bf2fe78ec715a0d492281045426ab194457 (patch)
tree896621b655bd5286b330c7b71d2cc0e6cf4eb38d /src/boot
parent21f6120e9dae590e5364de9f3af5c995c1ba8946 (diff)
after_store: Fix failing to parse nodeinfo when mrf transparency is
disabled Closes #772
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/after_store.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js
index 0bb1b2b4..4e043b35 100644
--- a/src/boot/after_store.js
+++ b/src/boot/after_store.js
@@ -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',