fn update_selection( current_selection: Option<RowSelection>, row_selection: RowSelection, ) -> Option<RowSelection>