Fix account store for entries without actor information

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/264/head
Julius Härtl 2019-01-03 10:16:55 +01:00
rodzic fc8d0f7ab7
commit 90dc46bd2b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
2 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -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'

Wyświetl plik

@ -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)
},