diff --git a/server/routes.js b/server/routes.js index 706b2343a..cdced3be9 100644 --- a/server/routes.js +++ b/server/routes.js @@ -35,10 +35,6 @@ if (process.env.NODE_ENV === 'production') { }); router.get('*', async (ctx) => { - ctx.set({ - 'Cache-Control': `max-age=${24*60*60}`, - }); - const stats = await sendfile(ctx, path.join(__dirname, '../dist/index.html')); if (!ctx.status) ctx.throw(httpErrors.NotFound()); }); diff --git a/src/scenes/Dashboard/Dashboard.js b/src/scenes/Dashboard/Dashboard.js index afc05d6ee..e8d801019 100644 --- a/src/scenes/Dashboard/Dashboard.js +++ b/src/scenes/Dashboard/Dashboard.js @@ -20,7 +20,7 @@ class Dashboard extends React.Component { } componentDidMount = () => { - // store.fetchAtlases(this.props.user.team.id); + store.fetchAtlases(this.props.user.team.id); } state = { @@ -49,27 +49,25 @@ class Dashboard extends React.Component { ); - return (
); + return ( + + + + + { store.isFetching ? ( + + ) : store.atlases && store.atlases.map((atlas) => { + return (); + }) } + + + - // return ( - // - // - // - // - // { store.isFetching ? ( - // - // ) : store.atlases && store.atlases.map((atlas) => { - // return (); - // }) } - // - // - // - - // { this.state.newAtlasVisible && } - // - // ); + { this.state.newAtlasVisible && } + + ); } } diff --git a/src/scenes/Home/Home.js b/src/scenes/Home/Home.js index d4142f775..270503da6 100644 --- a/src/scenes/Home/Home.js +++ b/src/scenes/Home/Home.js @@ -19,8 +19,6 @@ export default class Home extends React.Component { } render() { - // - return (
@@ -46,7 +44,7 @@ export default class Home extends React.Component {

- +