Skip to content

Conversation

@mhinkie
Copy link
Contributor

@mhinkie mhinkie commented Nov 23, 2022

fixes #125

@mhinkie mhinkie requested a review from buehlefs November 24, 2022 09:52
for(let author of authorlist) {
if(author.userId !== first_author) {
this.candidateManagementService.updateAuthorsCandidate(this.candidate, author).subscribe(result => {
this.candidateManagementService.updateAuthorsCandidate(result, author).subscribe(result => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename result (e.g. to candidate or createdCandidate or similar) to avoid having two result variables with different meaning.
Also: Can result be a failure state (e.g. null)? If so, then guard against this.

@mhinkie mhinkie merged commit 1eca37f into master Nov 24, 2022
@mhinkie mhinkie deleted the bugfix/candidate_authors branch November 24, 2022 12:34
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.

Adding Authors to a Pattern Candidate does not work in while Adding it

3 participants