Skip to content

questionAnswers state remains undefined on update #93

Open
@waheed25

Description

when i insert data in login filed it shows in the console.log set state questionAnswer arguments but var that is storing questionAnswer remain undefined

key: 'handleAnswerChange',
value: function handleAnswerChange(questionId, questionAnswer) { debugger;
var questionAnswers = _.chain(this.state.questionAnswers).set(questionId, questionAnswer).value();

  this.setState({
    questionAnswers: questionAnswers
  }, this.props.onUpdate.bind(null, questionAnswers));
}

},
screenshot from 2017-07-24 14-28-53
screenshot from 2017-07-24 14-29-34

when i update questionAnwer it remains undefined but in the lodash function arguments it shows updated value

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions