mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
Another fix for dashboard loading
This commit is contained in:
1 parent
3dbe2056cc
commit
bb20115f00
2 files changed
+2
-2
No files matched your search
@@ -58,7 +58,7 @@ class Dashboard extends React.Component {
|
||||
<Flex direction="column" flex={ true }>
|
||||
{ store.isFetching ? (
|
||||
<AtlasPreviewLoading />
|
||||
) : store.atlases.map((atlas) => {
|
||||
) : store.atlases && store.atlases.map((atlas) => {
|
||||
return (<AtlasPreview key={ atlas.id } data={ atlas } />);
|
||||
}) }
|
||||
</Flex>
|
||||
|
||||
@@ -2,7 +2,7 @@ import { observable, action } from 'mobx';
|
||||
import { client } from 'utils/ApiClient';
|
||||
|
||||
const store = new class DashboardStore {
|
||||
@observable atlases = [];
|
||||
@observable atlases;
|
||||
@observable pagination;
|
||||
|
||||
@observable isFetching = true;
|
||||
|
||||
Reference in new issue
Block a user