 
     return null  unless @props.shouldRenderDetails
 
-    expanded = if @props.machine.get('label') is @state.selectedMachine
+    expanded = if @props.machine.get('_id') is @state.activeMachine
     then ' expanded'
     else ''
 

MachineDetails = require './machinedetails'
Machine = require 'app/providers/machine'
immutable = require 'immutable'
VirtualMachinesSelectedMachineFlux = require 'home/virtualmachines/flux/selectedmachine'
KDReactorMixin = require 'app/flux/base/reactormixin'
EnvironmentFlux = require 'app/flux/environment'
module.exports = class MachinesListItem extends React.Component

  getDataBindings: ->

    return {
      activeMachine: EnvironmentFlux.getters.activeMachine
      expandedMachineLabel: EnvironmentFlux.getters.expandedMachineLabelStore
    }

