             self?.dataItem.append(item)
             self?.refreshData()
         }, onError: { [unowned self] (error) in
-            self.onErrorBlock?(error)
+            self.onErrorBlock(error)
         }).disposed(by: disposeBag)
     }
 

    typealias OnErrorBlock = (_ error: Error) -> Void

    // MARK: - Fields
    var refreshDataBlock: RefreshDataBlock?

    var onErrorBlock: OnErrorBlock?
    
    private let itemsSubject = PublishSubject<I>()

    private let dataItem: S

    }

    private func refreshData() {
        refreshDataBlock()
    }

