Fix branch selection in reader

This commit is contained in:
Koitharu
2023-01-04 17:39:06 +02:00
parent 1493aa39a3
commit c8b6dc27b2

View File

@@ -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)