Skip to content

Commit

Permalink
Order Projects and Notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush221b committed Oct 26, 2018
1 parent 8c296fc commit 27fd349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const mapStateToProps = (state) => {
export default compose(
connect(mapStateToProps),
firestoreConnect([
{collection: 'projects'},
{collection: 'projects', orderBy: ['createdAt', 'desc'] },
{collection : 'notifications', limit:3, orderBy: ['time', 'desc']}
])
)(Dashboard)

0 comments on commit 27fd349

Please sign in to comment.