From f9bf37e13d53b4f9847af9d3398505e500f81b2e Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Fri, 29 Nov 2019 19:38:56 +0700 Subject: Fix cannot read property 'args' of null --- src/stores/lib/Request.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/stores/lib') diff --git a/src/stores/lib/Request.js b/src/stores/lib/Request.js index 486de8a49..cfc857c2e 100644 --- a/src/stores/lib/Request.js +++ b/src/stores/lib/Request.js @@ -82,7 +82,8 @@ export default class Request { } reload() { - return this.execute(...this._currentApiCall.args); + const args = this._currentApiCall ? this._currentApiCall.args : []; + return this.execute(...args); } retry = () => this.reload(); -- cgit v1.2.3-54-g00ecf