1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 09:57:06 +02:00

Replace stray m.lazyRedraw and m.deferred on Model.js

This commit is contained in:
Alexander Skvortsov
2020-08-28 10:37:02 -04:00
committed by Franz Liedke
parent 4c73d76668
commit f41aec1043

View File

@@ -180,7 +180,7 @@ export default class Model {
// old data! We'll revert to that and let others handle the error. // old data! We'll revert to that and let others handle the error.
(response) => { (response) => {
this.pushData(oldData); this.pushData(oldData);
m.lazyRedraw(); m.redraw();
throw response; throw response;
} }
); );
@@ -195,7 +195,7 @@ export default class Model {
* @public * @public
*/ */
delete(body, options = {}) { delete(body, options = {}) {
if (!this.exists) return m.deferred().resolve().promise; if (!this.exists) return Promise.resolve();
return app return app
.request( .request(