Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Website
Commits
2b762780
Commit
2b762780
authored
Oct 04, 2018
by
Viacheslav Pavlov
Browse files
Fix: Institute loader dead
parent
95c73e3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/institutes/actions/dashboard.ts
View file @
2b762780
...
...
@@ -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
)
{
...
...
src/institutes/actions/public.ts
View file @
2b762780
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment