Skip to content

fix: send source only if its available #1655

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

Merged
merged 3 commits into from
Jun 16, 2025
Merged

fix: send source only if its available #1655

merged 3 commits into from
Jun 16, 2025

Conversation

hentrymartin
Copy link
Collaborator

What's in this PR?

  • send source only if its available

@@ -10,7 +10,14 @@ import { PROJECTS_API_URL } from '../config/constants'
*/
export function updateProjectMemberInvite (projectId, inviteId, status, source) {
const url = `${PROJECTS_API_URL}/${projectId}/invites/${inviteId}`
return axios.patch(url, { status, source })
const body = {
status

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider maintaining consistent code style by keeping the semicolon at the end of the object definition.

}

if (source) {
body.source = source

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider maintaining consistent code style by keeping the semicolon after assigning source to body.source.

@hentrymartin hentrymartin merged commit 37c544a into develop Jun 16, 2025
5 checks passed
@hentrymartin hentrymartin deleted the pm-1355_1 branch June 16, 2025 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant