Reformat some code

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
update-master-target-versions
Carl Schwan 2022-11-02 12:49:30 +01:00
rodzic 21604e11d7
commit 89472dc5ad
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -30,7 +30,14 @@ const state = {
accountIdMap: {},
}
const addAccount = (state, { actorId, data }) => {
Vue.set(state.accounts, actorId, Object.assign({ followersList: [], followingList: [], details: { following: false, follower: false } }, state.accounts[actorId], data))
Vue.set(state.accounts, actorId, Object.assign({
followersList: [],
followingList: [],
details: {
following: false,
follower: false,
}
}, state.accounts[actorId], data))
Vue.set(state.accountIdMap, data.account, data.id)
}
const _getActorIdForAccount = (account) => state.accountIdMap[account]