Skip to content

Commit 4259ad4

Browse files
committed
bugfix/character-comic-list — When request fail, spinner should disappear.
1 parent 853c832 commit 4259ad4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/character/comic-list/character-comic-list.controller.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
comicService
4343
.findByCharacterId(vm.character.id, {offset: vm.comics.length})
4444
.then(updateList)
45-
.catch(throwErr);
45+
.catch(showErr);
4646

4747
/////////////
4848

@@ -58,6 +58,11 @@
5858
vm.hasMore = meta && (meta.count + meta.offset) < meta.total;
5959
$scope.$broadcast('scroll.infiniteScrollComplete');
6060
}
61+
62+
function showErr(err){
63+
vm.spinnerVisible = false;
64+
throwErr(err);
65+
}
6166
}
6267

6368
function remove() {

0 commit comments

Comments
 (0)