From d72a6be009e23c4811e5dcc8b43ad99c2a20f5db Mon Sep 17 00:00:00 2001 From: mathuramg Date: Tue, 12 Jul 2016 10:16:19 -0400 Subject: [PATCH] add table scope --- client/modules/Sketch/pages/SketchListView.js | 8 ++++---- package.json | 2 +- server/server.js | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/modules/Sketch/pages/SketchListView.js b/client/modules/Sketch/pages/SketchListView.js index fec25baf..f38c806a 100644 --- a/client/modules/Sketch/pages/SketchListView.js +++ b/client/modules/Sketch/pages/SketchListView.js @@ -22,14 +22,14 @@ class SketchListView extends React.Component { /> - - - + + + {this.props.sketches.map(sketch => - + diff --git a/package.json b/package.json index dca229de..9fc1ef6b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "bson-objectid": "^1.1.4", "classnames": "^2.2.5", "codemirror": "^5.14.2", - "connect-mongo": "^1.2.0", + "connect-mongo": "^1.0.0", "cookie-parser": "^1.4.1", "dotenv": "^2.0.0", "escape-string-regexp": "^1.0.5", diff --git a/server/server.js b/server/server.js index e0e97fe2..d9a8ea9d 100644 --- a/server/server.js +++ b/server/server.js @@ -3,7 +3,7 @@ import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import cookieParser from 'cookie-parser'; import session from 'express-session'; -const MongoStore = require('connect-mongo')(session); +const MongoStore = require('connect-mongo/es5')(session); import passport from 'passport'; import path from 'path'; @@ -83,4 +83,3 @@ app.listen(serverConfig.port, (error) => { }); export default app; -
NameCreatedLast UpdatedNameCreatedLast Updated
{sketch.name}{sketch.name} {moment(sketch.createdAt).format('MMM D, YYYY')} {moment(sketch.updatedAt).format('MMM D, YYYY')}