Added check in fetchStatus action for if id exists

• Added:
- check in fetchStatus action for if id exists
This commit is contained in:
mgabdev 2020-12-31 17:49:25 -05:00
parent b129ce0f88
commit 81dcab94f9
1 changed files with 2 additions and 0 deletions

View File

@ -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