const cities = await loadSuggestions(value);
const isDataEmpty = cities.length === 0;
if (cities.length > 9) cities.splice(10, cities.length); // check length of result
if (isDataEmpty) dispatch({ type: HIDE_SUGGESTIONS });
return (
<table className="colocation-tablestand">
<thead>
<tr>
<th>
<FormattedMessage id="colocation.building" />
</th>
<th>
<FormattedMessage id="colocation.location" />
</th>
<th>
<FormattedMessage id="colocation.device" />
</th>
<th>
<FormattedMessage id="colocation.equipment_type" />
</th>
<th>
<FormattedMessage id="colocation.serial_number" />
</th>
<th>
<FormattedMessage id="colocation.equipment_model" />
</th>
<th>
<FormattedMessage id="colocation.room_id" />
</th>
<th>
<FormattedMessage id="colocation.rack_id" />
</th>
</tr>
</thead>
<tbody>
{this.props.colocationTablestand.length>0 && this.props.colocationTablestand.map(
(el, i): React.ReactNode => (
<tr key={i}>
<td>{el.building}</td>
<td>{el.location}</td>