-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
fix: Group src order not correct when src updated #62
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/image/n6gxt09c8 |
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 229 230 +1
Branches 65 63 -2
=========================================
+ Hits 229 230 +1
Continue to review full report at Codecov.
|
setPreviewUrls(oldPreviewUrls => { | ||
const clonePreviewUrls = new Map(oldPreviewUrls); | ||
const deleteResult = clonePreviewUrls.delete(id); | ||
return deleteResult ? clonePreviewUrls : oldPreviewUrls; | ||
}); | ||
}; | ||
|
||
// we don't to test this if canPreview changed when same url |
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.
// we don't to test this if canPreview changed when same url | |
// we don't need to test this if canPreview changed when url stays the same |
Maybe this is better👀
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.
Thanks.
close ant-design/ant-design#28881