Updated group_lists reducer booleans

• Updated:
- group_lists reducer booleans to be isLoading, isFetched
This commit is contained in:
mgabdev
2020-06-04 18:52:26 -04:00
parent ed9433c303
commit 9c67882cf1
2 changed files with 15 additions and 15 deletions

View File

@@ -136,8 +136,8 @@ export const fetchGroups = (tab) => (dispatch, getState) => {
if (!me) return
// Don't refetch or fetch when loading
const isLoading = getState().getIn(['group_lists', tab, 'loading'])
const isFetched = getState().getIn(['group_lists', tab, 'fetched'])
const isLoading = getState().getIn(['group_lists', tab, 'isLoading'])
const isFetched = getState().getIn(['group_lists', tab, 'isFetched'])
if (isLoading || isFetched) return