<commit_before>import React from 'react'
import plugin from 'app/utils/plugin'
import RichDescription from './richdescription'
import store from 'app/utils/store'
import Flash from 'app/flash'

const SelectCall = React.createClass({
  getInitialState(){
    return {
      items: []
    }
  },
  componentDidMount(){
    const props = this.props
    let self = this
    plugin.start(props.options.command).then( (pl) => {
      let form_data = props.form_data
      let data = {}
      Object.keys(form_data).map( (k) => {
        let ff = props.fields.find( f => f.name == k)
        if (ff && ff.type == "service"){
          let service_id = form_data[k]
          data[k]=store.getState().serverboard.serverboard.services.find( s => s.uuid == service_id )
        }
        else{
          data[k]=form_data[k]
        }
      })<commit_msg>Fix select call with related service param<commit_after>import React from 'react'
import plugin from 'app/utils/plugin'
import RichDescription from './richdescription'
import store from 'app/utils/store'
import Flash from 'app/flash'

const SelectCall = React.createClass({
  getInitialState(){
    return {
      items: []
    }
  },
  componentDidMount(){
    const props = this.props
    let self = this
    plugin.start(props.options.command).then( (pl) => {
      let form_data = props.form_data
      let data = {}
      Object.keys(form_data).map( (k) => {
        let ff = props.fields.find( f => f.name == k)
        if (ff && ff.type == "service"){
          let service_id = form_data[k]
          data[k]=store.getState().project.project.services.find( s => s.uuid == service_id )
        }
        else{
          data[k]=form_data[k]
        }
      })
{'fraction_non_alphanumeric': 0.13676212741087085, 'fraction_numerical': 0.0, 'mean_word_length': 2.5298969072164947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '821677', 'n_tokens_mistral': 533, 'n_tokens_neox': 526, 'n_words': 128}