FIX: "Sorry an error has occurred" was shown when flagging a post (#10948)

This commit is contained in:
Gerhard Schlager
2020-10-18 13:47:54 +02:00
committed by GitHub
parent 918d1d8363
commit 1ac010db3c

View File

@@ -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) {