try <ul> instead
This commit is contained in:
parent
5643b27637
commit
85322ef16d
@ -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>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user