hmms
This commit is contained in:
@@ -13,7 +13,7 @@ class DocumentList extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
{ this.props.documents.map((document) => {
|
||||
{ this.props.documents && this.props.documents.map((document) => {
|
||||
return (
|
||||
<div>
|
||||
<DocumentPreview document={ document } />
|
||||
|
||||
@@ -56,7 +56,11 @@ class Dashboard extends React.Component {
|
||||
>
|
||||
<CenteredContent>
|
||||
<Flex direction="column" flex={ true }>
|
||||
|
||||
{ store.isFetching ? (
|
||||
<AtlasPreviewLoading />
|
||||
) : store.atlases && store.atlases.map((atlas) => {
|
||||
return (<AtlasPreview key={ atlas.id } data={ atlas } />);
|
||||
}) }
|
||||
</Flex>
|
||||
</CenteredContent>
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user