Skip to content

Commit

Permalink
Fix BundlePickerView
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jan 16, 2025
1 parent ec58c5b commit 30d68c1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/TrueWidget/swift/Views/BundlePickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ struct BundlePickerView: View {
) { result in
if let url = try? result.get().first {
HelperClient.shared.proxy?.bundleVersions(paths: [url.path]) { versions in
if versions[url.path] != nil {
path = url.path
errorMessage = nil
} else {
path = ""
errorMessage = "Could not get the version of the selected file"
Task { @MainActor in
if versions[url.path] != nil {
path = url.path
errorMessage = nil
} else {
path = ""
errorMessage = "Could not get the version of the selected file"
}
}
}
return
Expand Down

0 comments on commit 30d68c1

Please sign in to comment.