1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +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.
(response) => {
this.pushData(oldData);
m.lazyRedraw();
m.redraw();
throw response;
}
);
@@ -195,7 +195,7 @@ export default class Model {
* @public
*/
delete(body, options = {}) {
if (!this.exists) return m.deferred().resolve().promise;
if (!this.exists) return Promise.resolve();
return app
.request(