Skip to content

Commit 49f48c5

Browse files
author
Walker Leite
committed
fix(loopback): setLoading to false when errored
1 parent ca3c34a commit 49f48c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

template/client/services/loopback.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ http.find = (endpoint, filter) => http.get(endpoint, {params: {filter}});
5454

5555
/* Response Interceptors */
5656
const interceptResErrors = (err) => {
57+
setLoading(false, err.response.config.uid);
5758
try {
5859
err = Object.assign(new Error(), err.response.data.error);
5960
} catch (e) {

0 commit comments

Comments
 (0)