Skip to content

Commit

Permalink
Merge pull request #42 from PolyHx/fix/competition/add-question-error
Browse files Browse the repository at this point in the history
Fix add question save error
  • Loading branch information
BrandonRbg authored Mar 19, 2019
2 parents 556fd72 + 64d8174 commit b6515c7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ export class CompetitionEditEffects {
.pipe(
map((r) => new QuestionCreated({
...r,
question: action.question
question: {
_id: r.question as any,
...action.question
}
})),
catchError(() => of(new CreateQuestionError()))
);
Expand Down

0 comments on commit b6515c7

Please sign in to comment.