diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-01-03 10:16:55 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-01-03 10:16:55 +0100 |
commit | 90dc46bd2be114dbb7595d1ef4ab7eb89cb5cf14 (patch) | |
tree | 72df226811004abb4f6beb74be8283e1d026c393 /src/store | |
parent | fc8d0f7ab75ec78b81d2ee6637a66004373a6ac6 (diff) |
Fix account store for entries without actor information
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/account.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/store/account.js b/src/store/account.js index 41ac3782..76ea4679 100644 --- a/src/store/account.js +++ b/src/store/account.js @@ -57,11 +57,13 @@ const mutations = { let users = [] for (var index in data) { const actor = data[index].actor_info - users.push(actor.id) - addAccount(state, { - actorId: actor.id, - data: actor - }) + if (typeof actor !== 'undefined') { + users.push(actor.id) + addAccount(state, { + actorId: actor.id, + data: actor + }) + } } Vue.set(state.accounts[_getActorIdForAccount(account)], 'followingList', users) }, |