let weekByTime = days.map((nameDay,index) => {
return (
<td className="schedule_item" key={index + '_scheduleTable_child'}>
{
scheduleByTime[nameTime] && scheduleByTime[nameTime][nameDay] ? scheduleByTime[nameTime][nameDay].cabinet : ''
}
</td>
)
})
How can I show two properties if the ternary operator is true? I tried (scheduleByTime [nameTime] [nameDay] .cabinet && scheduleByTime [nameTime] [nameDay] .techer) but it only shows the second please help
Обсуждают сегодня