Added check in fetchStatus action for if id exists
• Added: - check in fetchStatus action for if id exists
This commit is contained in:
parent
b129ce0f88
commit
81dcab94f9
@ -78,6 +78,8 @@ function getFromDB(dispatch, getState, accountIndex, index, id) {
|
||||
*
|
||||
*/
|
||||
export const fetchStatus = (id) => (dispatch, getState) => {
|
||||
if (!id) return
|
||||
|
||||
const skipLoading = getState().getIn(['statuses', id], null) !== null
|
||||
if (skipLoading) return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user