     data = @getStudentRowData()
 
     rowGetter = (rowIndex) =>
-        @renderStudentRow(data.rows[rowIndex])
-
-      if data.rows.length > 0
-        <div className='course-scores-wrap'>
+      @renderStudentRow(data.rows[rowIndex])
+
+    if data.rows.length > 0
+      <div className='course-scores-wrap'>
           <span className='course-scores-title'>Student Scores</span>
           <ScoresExport courseId={courseId} className='pull-right'/>
           <CoursePeriodsNavShell

        d.last_name.toLowerCase()
    )
    { headings: scores.data_headings, rows: if sort.asc then sortData else sortData.reverse() }

  render: ->
    {courseId} = @props
    {period_id, tableWidth, tableHeight} = @state

             {_.map(data.headings, @renderHeadingCell)}
           </Table>
          </div>
      </div>
    else
      <div className='course-scores-wrap'>
        <span className='course-scores-title'>No Assignments Yet</span>
          <div className='course-scores-container' ref='tableContainer'></div>
      </div>


