let date;
let datedel;
let status;
let comments = [];
let obj = this.props.masterAPI.filter(
(master) => master.id == this.props.inputText
);
if(obj[0]){
date = obj[0].date;
datedel = obj[0].fechaentrega;
status = obj[0].status;
comments = obj[0].comments;
}
let date; let datedel; let status;
let comments = []; let obj = this.props.masterAPI.filter( (master) => master.id == this.props.inputText ); if(obj[0]){ date = obj[0].date;
datedel = obj[0].fechaentrega;
status = obj[0].status;
comments = obj[0].comments;
}