mirror of
https://github.com/funamitech/mastodon
synced 2024-11-24 23:26:42 +09:00
Fix accounts' display name/bio not being set from initial state (#6644)
This commit is contained in:
parent
b0664a5e6c
commit
20d1be18af
@ -102,7 +102,7 @@ const initialState = ImmutableMap();
|
|||||||
export default function accounts(state = initialState, action) {
|
export default function accounts(state = initialState, action) {
|
||||||
switch(action.type) {
|
switch(action.type) {
|
||||||
case STORE_HYDRATE:
|
case STORE_HYDRATE:
|
||||||
return state.merge(action.state.get('accounts'));
|
return normalizeAccounts(state, Object.values(action.state.get('accounts').toJS()));
|
||||||
case ACCOUNT_FETCH_SUCCESS:
|
case ACCOUNT_FETCH_SUCCESS:
|
||||||
case NOTIFICATIONS_UPDATE:
|
case NOTIFICATIONS_UPDATE:
|
||||||
return normalizeAccount(state, action.account);
|
return normalizeAccount(state, action.account);
|
||||||
|
Loading…
Reference in New Issue
Block a user