summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-03 10:16:55 +0100
committerJulius Härtl <jus@bitgrid.net>2019-01-03 10:16:55 +0100
commit90dc46bd2be114dbb7595d1ef4ab7eb89cb5cf14 (patch)
tree72df226811004abb4f6beb74be8283e1d026c393
parentfc8d0f7ab75ec78b81d2ee6637a66004373a6ac6 (diff)
Fix account store for entries without actor information
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--src/main.js1
-rw-r--r--src/store/account.js12
2 files changed, 7 insertions, 6 deletions
diff --git a/src/main.js b/src/main.js
index 0d930898..79a1039e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -19,7 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import '@babel/polyfill'
import Vue from 'vue'
import { sync } from 'vuex-router-sync'
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)
},