From d3a8066eae4866914ac76f5492bcc1ee7461e4c5 Mon Sep 17 00:00:00 2001 From: Balsam-Faysal Date: Wed, 15 Aug 2018 21:07:43 +0300 Subject: [PATCH] #47 a little change before reviewing --- client/src/pages/customer-pages/Home/index.js | 7 ------- server/controllers/api/updateFlight.js | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/pages/customer-pages/Home/index.js b/client/src/pages/customer-pages/Home/index.js index 33c1462..684b946 100644 --- a/client/src/pages/customer-pages/Home/index.js +++ b/client/src/pages/customer-pages/Home/index.js @@ -39,11 +39,6 @@ class Home extends Component { this.setState({ modalIsOpen: true }); }; - afterOpenModal = () => { - // references are now sync'd and can be accessed. - // this.subtitle.style.color = "#0f0"; - }; - closeModal = () => { const { textInputValuepPhone } = this.state; if (textInputValuepPhone !== "") { @@ -246,11 +241,9 @@ class Home extends Component { onTextInputChange={this.handlecheckboxChange} /> - {/* onClick={this.openModal} */} { const flightNumber = req.params.flightId || req.body.flightNo; + models.Flights.findOne({ where: { flight_no: flightNumber } }).then((result) => { const resultFlightInformation = result.dataValues; res.status(200).send({ data: resultFlightInformation });