feat: add placeholder if no paths or webhooks

This commit is contained in:
Alex Varchuk 2021-05-26 11:26:14 +03:00
parent e4383ae40b
commit 24c02e3c52

View File

@ -15,7 +15,7 @@ export class ContentItems extends React.Component<{
render() {
const items = this.props.items;
if (items.length === 0) {
return null;
return <MiddlePanel compact={false}>Cannot find path or webhooks items</MiddlePanel>;
}
return items.map(item => {
return <ContentItem key={item.id} item={item} />;