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
eb8cb42a
Commit
eb8cb42a
authored
Jan 25, 2019
by
Viacheslav Pavlov
Browse files
Bug: re-applying an applied filter
parent
369c1e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/pages/_base/BrowsePage.tsx
View file @
eb8cb42a
...
...
@@ -34,10 +34,11 @@ class BrowsePage<T> extends React.Component<IBrowsePageProps<T> & any, any> {
public
componentWillReceiveProps
(
nextProps
)
{
const
{
filterCode
:
prevCode
,
paged
:
prevPaged
}
=
this
.
props
;
const
{
filterCode
,
applyFilters
,
paged
}
=
nextProps
;
const
{
applyFilters
,
paged
}
=
nextProps
;
const
filterCode
=
nextProps
.
filterCode
||
''
;
if
(
prevPaged
&&
paged
&&
_
.
isEqual
(
paged
.
filter
,
prevPaged
.
filter
))
{
if
(
prevCode
!==
filterCode
)
{
if
(
filterCode
!==
paged
.
filterCode
&&
prevCode
!==
filterCode
)
{
applyFilters
(
filterCode
||
''
);
}
}
...
...
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