fix: fix null exception on community page (#1504)
This commit is contained in:
parent
2b4edee216
commit
5332a4e1e9
|
@ -2,11 +2,12 @@ import { store } from '../_store/store'
|
|||
import { cacheFirstUpdateAfter } from '../_utils/sync'
|
||||
import { database } from '../_database/database'
|
||||
import { getFollowRequests } from '../_api/followRequests'
|
||||
import { get } from '../_utils/lodash-lite'
|
||||
|
||||
export async function updateFollowRequestCountIfLockedAccount (instanceName) {
|
||||
const { verifyCredentials, loggedInInstances } = store.get()
|
||||
|
||||
if (!verifyCredentials[instanceName].locked) {
|
||||
if (!get(verifyCredentials, [instanceName, 'locked'])) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue