Skip to content

Instantly share code, notes, and snippets.

@aghh1504
Created September 27, 2018 20:11
Show Gist options
  • Select an option

  • Save aghh1504/dfd21376d9c3da3995d2395c05107a69 to your computer and use it in GitHub Desktop.

Select an option

Save aghh1504/dfd21376d9c3da3995d2395c05107a69 to your computer and use it in GitHub Desktop.
openEditModale = noBooking => {
const flight = this.state.flights.find(flight => flight.noBooking === noBooking)
this.setState({ editModal: !this.state.editModal, flight: flight });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment