 
   renderStacks: ->
 
-    if @state.stacks.size
+    if @state.stacks?.size or @state.drafts?.size
       <SidebarStackHeaderSection>
         {@prepareStacks()}
       </SidebarStackHeaderSection>
-    else if @state.showNoStacksWidget
+    else
       <SidebarNoStacks />
 
 

      activeLeavingSharedMachineId={@state.activeLeavingSharedMachineId}
      machines={machines}/>


  renderNewStackSection: ->

    return null  unless @state.creatingNewStack

  renderLogo: ->



  componentWillMount: ->

    EnvironmentFlux.actions.loadStacks()
    EnvironmentFlux.actions.loadMachines().then @bound 'setActiveInvitationMachineId'

    EnvironmentFlux.actions.loadTeamStackTemplates()
