Created
August 28, 2018 17:03
-
-
Save bobsilverberg/4fe2db2619dc5139270b8657d96a75a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/amo/sagas/reviews.js b/src/amo/sagas/reviews.js | |
index c777a8e..ae7ab5b 100644 | |
--- a/src/amo/sagas/reviews.js | |
+++ b/src/amo/sagas/reviews.js | |
@@ -297,7 +297,10 @@ function* deleteAddonReview({ | |
reviewId, | |
}); | |
- yield put(unloadAddonReviews({ reviewId: isReplyToReviewId || reviewId })); | |
+ yield put(unloadAddonReviews({ reviewId })); | |
+ if (isReplyToReviewId) { | |
+ yield put(unloadAddonReviews({ reviewId: isReplyToReviewId })); | |
+ } | |
} catch (error) { | |
log.warn(`Failed to delete review ID ${reviewId}: ${error}`); | |
yield put(errorHandler.createErrorAction(error)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment