Fixed issue with timeline, accounts being fetched with undefined/null id
• Fixed: - issue with timeline, accounts being fetched with undefined/null id
This commit is contained in:
@@ -97,6 +97,7 @@ function getFromDB(dispatch, getState, index, id) {
|
||||
*/
|
||||
export const fetchAccount = (id) => (dispatch, getState) => {
|
||||
if (id === -1 || getState().getIn(['accounts', id], null) !== null) return
|
||||
if (!id) return
|
||||
|
||||
dispatch(fetchRelationships([id]))
|
||||
dispatch(fetchAccountRequest(id))
|
||||
|
||||
Reference in New Issue
Block a user