Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Nov 4, 2024
1 parent 703a300 commit ea95583
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
path: 'Tests/UITests'
scheme: TestApp
resultBundle: TestAppiPadOS.xcresult
destination: 'platform=iOS Simulator,name=iPad mini (6th generation)'
destination: 'platform=iOS Simulator,name=iPad Pro 13-inch (M4)'
artifactname: TestAppiPadOS.xcresult
uploadcoveragereport:
name: Upload Coverage Report
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
.library(name: "SpeziMedication", targets: ["SpeziMedication"])
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.7.0")
.package(url: "https://github.com/StanfordSpezi/SpeziViews.git", from: "1.7.0")
] + swiftLintPackage(),
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ struct EditMedication<MI: MedicationInstance>: View {
}
Section {
Button(String(localized: "Delete", bundle: .module), role: .destructive) {
viewModel.medicationInstances.removeAll(where: { $0.id == medicationInstance.id })
let id = medicationInstance.id
viewModel.medicationInstances.removeAll(where: { $0.id == id })
dismiss()
}
}
Expand Down

0 comments on commit ea95583

Please sign in to comment.