Change history: show a placeholder when change history is empty.

master
Tom Hacohen 4 years ago
parent 7ba75ae3c1
commit 1a18ce11ce

@ -96,6 +96,7 @@ export default function GenericChangeHistory(props: PropsType) {
return (
<List style={{ height: "100%" }}>
{(entriesList.length > 0) ? (
<AutoSizer>
{({ height, width }) => (
<VirtualizedList
@ -107,6 +108,11 @@ export default function GenericChangeHistory(props: PropsType) {
/>
)}
</AutoSizer>
) : (
<ListItem
primaryText="No entries found"
/>
)}
</List>
);
}

Loading…
Cancel
Save