From f41aec104363d4251d2d35281fe1524bc7601734 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 28 Aug 2020 10:37:02 -0400 Subject: [PATCH] Replace stray m.lazyRedraw and m.deferred on Model.js --- js/src/common/Model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/common/Model.js b/js/src/common/Model.js index d7d7913cb..ecda6aebb 100644 --- a/js/src/common/Model.js +++ b/js/src/common/Model.js @@ -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(