             ships: ships
             shipgraph: shipgraph
         when '/kcsapi/api_port/port', '/kcsapi/api_get_member/deck', '/kcsapi/api_req_hensei/change'
-          if @state.secretary == null
+          if @state.secretary == 0
             @updateNotifyConfig(@state.secretary)
 
     ###*

        <Grid>
          <Col xs=12>
            <Input type="select" value={@state.secretary} onChange={@handleShipChange}>
              <option key={0} value={null}>当前秘书舰</option>
              {
                for ship, i in @state.ships
                  continue unless ship?

      # config.set('poi.notify.morale.audio', audio_morale)

    handleShipChange: (e) ->
      ship = parseInt(e.target.value)
      return unless ship != NaN
      @setState
        secretary: ship
      config.set('plugin.secretary.ship', ship)
      @updateNotifyConfig(ship)

    handleAudition: (type) ->
      audio = null
