Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySvetlichny committed Dec 25, 2024
1 parent d020db6 commit 0b1156a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Controllers/MyPlaces/TracksViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1777,8 +1777,8 @@ final class TracksViewController: OACompoundViewController, UITableViewDelegate,
var track = getTrackFolderByPath(currentFolderPath)?
.getTrackItems()
.first(where: { $0.gpxFileName == selectedTrackFilename })
if track == nil && isSearchActive {
let gpx = item.obj(forKey: trackObjectKey) as! GpxDataItem
if track == nil, isSearchActive,
let gpx = item.obj(forKey: trackObjectKey) as? GpxDataItem {
track = TrackItem(file: gpx.file)
track?.dataItem = gpx
}
Expand Down

0 comments on commit 0b1156a

Please sign in to comment.