Fix branch selection in reader

pull/293/head
Koitharu 3 years ago
parent 1493aa39a3
commit c8b6dc27b2
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -313,7 +313,7 @@ class ReaderViewModel @AssistedInject constructor(
} ?: ReaderState(manga, preselectedBranch)
}
val branch = chapters[currentState.value?.chapterId ?: 0L].branch
val branch = chapters[currentState.value?.chapterId ?: 0L]?.branch
mangaData.value = manga.filterChapters(branch)
readerMode.postValue(mode)

Loading…
Cancel
Save