Skip to content

Commit

Permalink
cci: prevent response if erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Oct 2, 2022
1 parent 6f254cc commit b054845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/root/DeputyContributionSurveyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ export default class DeputyContributionSurveyRow implements DeputyUIElement {
): void {
if (
event.data.page === this.row.title.getPrefixedText() ||
this.revisions.some( ( r ) => r.revision.revid === event.data.revision )
// `this.revisions` may be undefined. If so, don't reply.
this.revisions?.some( ( r ) => r.revision.revid === event.data.revision )
) {
window.deputy.comms.reply(
event.data, {
Expand Down

0 comments on commit b054845

Please sign in to comment.