Skip to content

Commit

Permalink
fix(HitsInteractor): Missing json decoder in convenience initalizer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz authored Oct 11, 2022
1 parent 9288b74 commit 5981de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/InstantSearchCore/Hits/HitsInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public class HitsInteractor<Record: Codable>: AnyHitsInteractor {
/// JSONDecoder used for hits decoding from the search response
public var jsonDecoder: JSONDecoder

convenience public init(infiniteScrolling: InfiniteScrolling = Constants.Defaults.infiniteScrolling,
public convenience init(infiniteScrolling: InfiniteScrolling = Constants.Defaults.infiniteScrolling,
showItemsOnEmptyQuery: Bool = Constants.Defaults.showItemsOnEmptyQuery,
jsonDecoder: JSONDecoder = JSONDecoder()) {
let settings = Settings(infiniteScrolling: infiniteScrolling,
showItemsOnEmptyQuery: showItemsOnEmptyQuery)
self.init(settings: settings)
self.init(settings: settings, jsonDecoder: jsonDecoder)
}

public convenience init(settings: Settings? = nil,
Expand Down

0 comments on commit 5981de8

Please sign in to comment.