Skip to content

Commit

Permalink
fix: Publish from background thread
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuz0u committed Jul 28, 2021
1 parent b17b341 commit b714d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EhPanda/View/Detail/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private extension DetailView {
store.dispatch(.fetchMangaDetail(gid: gid))
}
func fetchMangaPreviews(index: Int) {
DispatchQueue.global().async {
DispatchQueue.main.async {
store.dispatch(.fetchMangaPreviews(gid: gid, index: index))
}
}
Expand Down

0 comments on commit b714d32

Please sign in to comment.