mirror of https://gitee.com/answerdev/answer.git
fix(notifications): fix message disappear when reclick notification type
This commit is contained in:
parent
d72425b343
commit
05f4866909
|
@ -47,6 +47,9 @@ const Notifications = () => {
|
|||
|
||||
const handleTypeChange = (evt, val) => {
|
||||
evt.preventDefault();
|
||||
if (type === val) {
|
||||
return;
|
||||
}
|
||||
setPage(1);
|
||||
setNotificationData([]);
|
||||
navigate(`/users/notifications/${val}`);
|
||||
|
|
Loading…
Reference in New Issue