     render_output_prompt: ->
         collapsed = @props.cell.get('collapsed')
         exec_count = undefined
-        @props.cell.get('output')?.forEach (x) ->
+        output = @props.cell.get('output')
+        output?.forEach (x) ->
             if x.has('execution_count')?
                 exec_count = x.get('execution_count')
                 return false

                    exec_count = {exec_count}
                    collapsed  = {collapsed}
                    />
        if not @props.actions? or collapsed
            return prompt
        if @props.actions?
            <OutputToggle

###
React component that describes the output of a cell
###

misc = require('smc-util/misc')

{React, ReactDOM, rclass, rtypes}  = require('../smc-react')

