I think this should be `updateSingleRowSelection(rowsOnScreen[id][group], id)`.  The `updateRowSelection()` function expects an array, not a scalar value.