BatchChoiceView: Fix app crash on dismiss
Signed-off-by: kingbri <bdashore3@gmail.com>
This commit is contained in:
parent
4e169b47b3
commit
ac42936afb
1 changed files with 1 additions and 2 deletions
|
|
@ -17,8 +17,7 @@ struct BatchChoiceView: View {
|
|||
var body: some View {
|
||||
NavView {
|
||||
List {
|
||||
// To present this sheet, an RD item had to be set, this force unwrap is therefore safe
|
||||
ForEach(debridManager.selectedRealDebridItem!.files, id: \.self) { file in
|
||||
ForEach(debridManager.selectedRealDebridItem?.files ?? [], id: \.self) { file in
|
||||
Button(file.name) {
|
||||
debridManager.selectedRealDebridFile = file
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue