mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: "Sorry an error has occurred" was shown when flagging a post (#10948)
This commit is contained in:
parent
918d1d8363
commit
1ac010db3c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user