Skip to content

Commit

Permalink
🐞 Fix #66, thanks to @arggh
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Oct 12, 2019
1 parent fae06f7 commit 5cd539e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class Route {
});

whileWaitingAction();
wait(0);
wait(12);
} else if (_resources) {
whileWaitingAction();
getResources();
Expand All @@ -300,16 +300,14 @@ class Route {
}

callAction(current) {
this._endWaiting && this._endWaiting();
if (this._data) {
if (this._onNoData && !this._currentData) {
this._endWaiting && this._endWaiting();
this._onNoData(current.params, current.queryParams);
} else {
this._endWaiting && this._endWaiting();
this._action(current.params, current.queryParams, this._currentData);
}
} else {
this._endWaiting && this._endWaiting();
this._action(current.params, current.queryParams, this._currentData);
}
}
Expand Down

0 comments on commit 5cd539e

Please sign in to comment.