Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 3046ba3

Browse files
authored
fix(gui): only click once to undo annotation review (#965)
1 parent 5b96692 commit 3046ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-editor/gui/src/features/annotations/annotationSlice.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ const withToggledReviewer = function <T extends Annotation>(
693693
reviewer: string,
694694
reviewResult: ReviewResult,
695695
): T {
696-
if (oldAnnotation.reviewers?.includes(reviewer) ?? false) {
696+
if ((oldAnnotation.reviewers?.length ?? 0) > 0 || oldAnnotation.reviewResult) {
697697
return {
698698
...oldAnnotation,
699699
reviewers: [],

0 commit comments

Comments
 (0)