From 1ac010db3c0670075ee071d9ff1427199e129212 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Sun, 18 Oct 2020 13:47:54 +0200 Subject: [PATCH] FIX: "Sorry an error has occurred" was shown when flagging a post (#10948) --- app/assets/javascripts/discourse/app/controllers/flag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/controllers/flag.js b/app/assets/javascripts/discourse/app/controllers/flag.js index 740af8cf79e..22cc6840812 100644 --- a/app/assets/javascripts/discourse/app/controllers/flag.js +++ b/app/assets/javascripts/discourse/app/controllers/flag.js @@ -245,7 +245,7 @@ export default Controller.extend(ModalFunctionality, { postAction .act(this.model, params) .then(() => { - if (!opts.skipClose) { + if (!params.skipClose) { this.send("closeModal"); } if (params.message) {