lib/ProMotion/table/table.rb in ProMotion-2.6.0 vs lib/ProMotion/table/table.rb in ProMotion-2.6.1

- old
+ new

@@ -115,10 +115,13 @@ table_view.reloadRowsAtIndexPaths(Array(args[:index_paths]), withRowAnimation: args[:animation]) table_view.endUpdates else table_view.reloadData end - @table_search_display_controller.searchResultsTableView.reloadData if searching? + + if searching? && @table_search_display_controller.respond_to?(:searchResultsTableView) + @table_search_display_controller.searchResultsTableView.reloadData + end end def accessory_toggled_switch(switch) table_cell = closest_parent(UITableViewCell, switch) index_path = closest_parent(UITableView, table_cell).indexPathForCell(table_cell)