kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix crash on remote timeline when logged out
rodzic
4d2dde6783
commit
655974a832
|
@ -293,7 +293,7 @@ const getSimplePolicy = createSelector([
|
||||||
});
|
});
|
||||||
|
|
||||||
const getRemoteInstanceFavicon = (state: RootState, host: string) => {
|
const getRemoteInstanceFavicon = (state: RootState, host: string) => {
|
||||||
const accounts = state.entities[Entities.ACCOUNTS]?.store as EntityStore<AccountSchema>;
|
const accounts = (state.entities[Entities.ACCOUNTS]?.store ?? {}) as EntityStore<AccountSchema>;
|
||||||
const account = Object.entries(accounts).find(([_, account]) => account && getDomain(account) === host)?.[1];
|
const account = Object.entries(accounts).find(([_, account]) => account && getDomain(account) === host)?.[1];
|
||||||
return account?.pleroma?.favicon;
|
return account?.pleroma?.favicon;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue