diff --git a/src/client/components/Dashboard.js b/src/client/components/Dashboard.js index 7c0c937..468336a 100644 --- a/src/client/components/Dashboard.js +++ b/src/client/components/Dashboard.js @@ -26,10 +26,14 @@ const ALL_ENTITIES_QUERY = gql` ` const RECENT_SENTENCES_QUERY = gql` - query RECENT_SENTENCES_QUERY($after: String!) { + query RECENT_SENTENCES_QUERY( + $after: String!, + $relatedTo: String) { sentences ( after: $after + relatedTo: $relatedTo ) { + id content createdAt } @@ -156,7 +160,11 @@ class Dashboard extends React.Component {