From a22229e8d49ac49c75f711851cb43fe31608772c Mon Sep 17 00:00:00 2001 From: Bing Sun Date: Sat, 2 May 2020 13:53:22 +0800 Subject: [PATCH] make_model: revert fd25610 'reset promise on rejection' since the client should deal with rejected promise --- src/util/make_model.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/util/make_model.js b/src/util/make_model.js index d0ae9d7..67ce28b 100644 --- a/src/util/make_model.js +++ b/src/util/make_model.js @@ -162,13 +162,11 @@ export default (options={}) => { console.warn('The response range is narrower than requested, probably due to an upstream hard limit.') // clean model state + _promise = null this.reset() // return data return _cache.data.slice(_begin, _end + 1) - }).finally(() => { - // clean model state - _promise = null }) return _promise @@ -207,9 +205,6 @@ export default (options={}) => { // clean state _promise = null this.reset() - }).finally(() => { - // clean state - _promise = null }) return _promise