Skip to content

Commit 734b7b5

Browse files
committed
fix: clean reviews
* remove null reviews from submission.reivew
1 parent 86b6c7c commit 734b7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ function cleanseReviews (reviews, authUser) {
761761
}
762762
}
763763

764-
return reviews
764+
return reviews.filter(r => r != null)
765765
}
766766

767767
/**

0 commit comments

Comments
 (0)