85262: Allow empty patch requests

This commit is contained in:
Kristof De Langhe
2021-12-02 12:39:07 +01:00
parent 99af22b621
commit ed2c774d86
4 changed files with 51 additions and 7 deletions

View File

@@ -201,7 +201,8 @@ export class SubmissionObjectEffects {
return this.operationsService.jsonPatchByResourceType(
this.submissionService.getSubmissionObjectLinkName(),
action.payload.submissionId,
'sections').pipe(
'sections',
true).pipe(
map((response: SubmissionObject[]) => {
if (this.canDeposit(response)) {
return new DepositSubmissionAction(action.payload.submissionId);