-
-
Notifications
You must be signed in to change notification settings - Fork 775
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 invite to work on a bounty detail and user directory #4781
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4781 +/- ##
==========================================
+ Coverage 30.43% 30.43% +<.01%
==========================================
Files 216 216
Lines 17272 17271 -1
Branches 2344 2344
==========================================
Hits 5256 5256
+ Misses 11808 11807 -1
Partials 208 208
Continue to review full report at Codecov.
|
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.
left one minor comment ! otherwise lgtm 🙌
@@ -21,7 +21,7 @@ $('.modal-link').click(function(e) { | |||
const sendInvites = (users) => { | |||
let usersId = []; | |||
let msg = $('#shareText').val(); | |||
const url = document.issueURL; | |||
let bountyId = document.result.pk; |
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.
Doesn't look like bountyId gets updated within this !
should we just leave it as const ?
Also should we be extra safe and do const bountyId = document.result && document.result.pk
?
Description
Change the query to be by bounty id instead of github url, to avoid errors when the issue is duplicated
Refers/Fixes
Fix #4780
Testing
Tested locally in bounty details + users directory