diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-11-29 19:38:56 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-11-29 19:38:56 +0700 |
commit | f9bf37e13d53b4f9847af9d3398505e500f81b2e (patch) | |
tree | 12d6420ee4328b567fc0d9868069d5d6d4fe8236 /src/stores/lib | |
parent | Disable/prevent access to some settings for non-logged users (diff) | |
download | ferdium-app-f9bf37e13d53b4f9847af9d3398505e500f81b2e.tar.gz ferdium-app-f9bf37e13d53b4f9847af9d3398505e500f81b2e.tar.zst ferdium-app-f9bf37e13d53b4f9847af9d3398505e500f81b2e.zip |
Fix cannot read property 'args' of null
Diffstat (limited to 'src/stores/lib')
-rw-r--r-- | src/stores/lib/Request.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
82 | } | 82 | } |
83 | 83 | ||
84 | reload() { | 84 | reload() { |
85 | return this.execute(...this._currentApiCall.args); | 85 | const args = this._currentApiCall ? this._currentApiCall.args : []; |
86 | return this.execute(...args); | ||
86 | } | 87 | } |
87 | 88 | ||
88 | retry = () => this.reload(); | 89 | retry = () => this.reload(); |