Skip to content

Review Summation on a resource becomes null #11

Open
@callmekatootie

Description

@callmekatootie

From @cwdcwd via Slack:

I think we have a small bug here:

body: { doc: {reviewSummation: submission.reviewSummation} }

in the event of a delete on a reviewSummation that submission.reviewSummation can sometimes be null if all the summations are deleted. That puts a null in on that field instead of removing it entirely. This later gets concatenated with new reviewSummations.
I think we should null-check and then put and an empty array in if we can’t easily remove that field entirely.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions