Skip to content

Commit 37c544a

Browse files
authored
Merge pull request #1655 from topcoder-platform/pm-1355_1
fix: send source only if its available
2 parents 78755ed + 8d4d3a8 commit 37c544a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ workflows:
152152
context: org-global
153153
filters: &filters-dev
154154
branches:
155-
only: ["develop", "PM-803_wm-regression-fixes", "PM-902_show-all-projects-on-challenge-page"]
155+
only: ["develop", "PM-803_wm-regression-fixes", "PM-902_show-all-projects-on-challenge-page", "pm-1355_1"]
156156

157157
# Production builds are exectuted only on tagged commits to the
158158
# master branch.

src/services/projectMemberInvites.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ import { PROJECTS_API_URL } from '../config/constants'
1010
*/
1111
export function updateProjectMemberInvite (projectId, inviteId, status, source) {
1212
const url = `${PROJECTS_API_URL}/${projectId}/invites/${inviteId}`
13-
return axios.patch(url, { status, source })
13+
const body = {
14+
status
15+
}
16+
17+
if (source) {
18+
body.source = source
19+
}
20+
return axios.patch(url, body)
1421
.then(resp => resp.data)
1522
}
1623

0 commit comments

Comments
 (0)