aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/lib
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-29 19:38:56 +0700
committerLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-29 19:38:56 +0700
commitf9bf37e13d53b4f9847af9d3398505e500f81b2e (patch)
tree12d6420ee4328b567fc0d9868069d5d6d4fe8236 /src/stores/lib
parentDisable/prevent access to some settings for non-logged users (diff)
downloadferdium-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.js3
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();