Commit 2b762780 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Fix: Institute loader dead

parent 95c73e3e
......@@ -23,7 +23,7 @@ const receiveInstitute = (institute: FaoInstitute, error = null) => ({
});
export const loadInstitutesPage = (page: IPageRequest) => (dispatch, getState) => {
const filterCode = getState().institutes.paged.filterCode;
const filterCode = getState().institutes.dashboard.paged.filterCode;
return InstituteService.list(filterCode, page)
.then((paged) => {
if (paged.number === 0) {
......
......@@ -47,7 +47,7 @@ export const applyFilters = (filters: string | FaoInstituteFilter, page: IPageRe
};
export const loadInstitutesPage = (page: IPageRequest) => (dispatch, getState) => {
const filterCode = getState().institutes.paged.filterCode;
const filterCode = getState().institutes.public.paged.filterCode;
return InstituteService.list(filterCode, page)
.then((paged) => {
if (paged.number === 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment