Skip to content
Snippets Groups Projects
Unverified Commit a5d0234c authored by Tom Robinson's avatar Tom Robinson
Browse files

Public links admin empty state

parent 5f687f51
Branches
Tags
No related merge requests found
......@@ -65,7 +65,12 @@ export default class PublicLinksListing extends Component<*, Props, State> {
render() {
const { getUrl, getPublicUrl } = this.props;
const { list, error } = this.state;
let { list, error } = this.state;
if (list && list.length === 0) {
error = new Error("No public links have been created yet.");
}
return (
<LoadingAndErrorWrapper loading={!list} error={error}>
{ () =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment