try <ul> instead

This commit is contained in:
Ed Chalstrey 2022-08-09 15:17:40 +01:00
parent 5643b27637
commit 85322ef16d

View File

@ -27,9 +27,14 @@ const EditHistoryLatest: React.FunctionComponent<EditHistoryLatestProps> = (prop
fetchData(); // define and call, because effect cannot return anything and an async fn always returns a Promise
}
}, [props.building]); // only re-run effect on building prop change
return (
<>
<ul className="edit-history-list"
<li key={`${history[0].revision_id}`} className="edit-history-list-element">
<BuildingEditLatest historyEntry={history[0]} />
</li>
</ul>
</>
);
};