-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modify message maxcount bug #428
Conversation
@@ -67,7 +67,7 @@ const Notification = { | |||
remove(key) { | |||
this.setState(previousState => { | |||
return { | |||
notices: previousState.notices.filter(notice => notice.key !== key), | |||
notices: previousState.notices.filter(notice => notice.key !== key && notice.updateKey !== key), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right!
But maybe we should change
const close = createChainedFunction(remove.bind(this, key), onClose);
to
const close = createChainedFunction(remove.bind(this, notice.key), onClose);
is more better solution.
Codecov Report
@@ Coverage Diff @@
## master #428 +/- ##
=======================================
Coverage 87.62% 87.62%
=======================================
Files 145 145
Lines 4744 4744
Branches 1404 1404
=======================================
Hits 4157 4157
Misses 543 543
Partials 44 44 Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #428 +/- ##
=======================================
Coverage 87.62% 87.62%
=======================================
Files 145 145
Lines 4744 4744
Branches 1404 1404
=======================================
Hits 4157 4157
Misses 543 543
Partials 44 44 Continue to review full report at Codecov.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.