commit | 782ecfaec9d6bb6d513e639047bc43adf0d2a8a4 | [log] [tgz] |
---|---|---|
author | Milutin Kristofic <milutin@google.com> | Fri Nov 24 11:15:15 2023 +0100 |
committer | Milutin Kristofic <milutin@google.com> | Fri Nov 24 12:30:22 2023 +0100 |
tree | 865ba70464a59a526394a9202a2bbfe25fc8aec3 | |
parent | 70d442cf3af7c04e8cb12e1fa4e19f5ac7b1aa07 [diff] |
Show correct number of suggestions Change #393795 introduced bug that shows 0 when there is suggestion and 1 when there isn't. Release-Notes: skip Google-Bug-Id: b/312136534 Change-Id: Ie18f6335fbfec49c8f08228024629f8ace61e935
diff --git a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts index 694a316..3534e40 100644 --- a/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts +++ b/polygerrit-ui/app/elements/shared/gr-comment/gr-comment.ts
@@ -1076,7 +1076,7 @@ return '(0)'; } } - if (!this.generatedSuggestion) { + if (this.generatedSuggestion) { return '(1)'; } else { return '(0)';