Skip to content

Commit

Permalink
Add delay before showing secondary column to ensure order details bei…
Browse files Browse the repository at this point in the history
…ng shown
  • Loading branch information
itsmeichigo committed Feb 25, 2025
1 parent bbd341a commit 2c6340c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ final class OrdersSplitViewWrapperController: UIViewController {
return
}

presentDetails(for: Int64(orderID), siteID: Int64(siteID), note: note)
// workaround - delay to ensure the transition to the secondary column works after switching stores
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { [self] in
presentDetails(for: Int64(orderID), siteID: Int64(siteID), note: note)
}
}

func presentDetails(for orderID: Int64, siteID: Int64, note: Note? = nil) {
Expand Down

0 comments on commit 2c6340c

Please sign in to comment.