correct tests and use index resource type

This commit is contained in:
Maren Süwer
2018-10-15 13:52:45 +02:00
parent efdc57055d
commit 09130ca283
4 changed files with 18 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ import { getFailure } from "./failure";
import {
callFetchIndexResources,
FETCH_INDEXRESOURCES_SUCCESS,
fetchIndexResources,
fetchIndexResources, fetchIndexResourcesPending,
fetchIndexResourcesSuccess
} from "./indexResource";
@@ -156,6 +156,7 @@ export const login = (
return apiClient
.post(loginLink, login_data)
.then(response => {
dispatch(fetchIndexResourcesPending())
return callFetchIndexResources();
})
.then(response => {