Skip to content

Commit

Permalink
Fix thread warning `Publishing changes from background threads is not…
Browse files Browse the repository at this point in the history
… allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates.`.
  • Loading branch information
jaclync committed Jan 6, 2025
1 parent 371a8f1 commit d8390fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class PointOfSaleItemsController: PointOfSaleItemsControllerProtocol {
}
}

@MainActor
func loadInitialChildItems(for parent: POSItem) async {
guard case let .parentProduct(parentProduct) = parent else {
return
Expand Down

0 comments on commit d8390fd

Please sign in to comment.