diff --git a/app/jsx/context_cards/GraphQLStudentContextTray.js b/app/jsx/context_cards/GraphQLStudentContextTray.js index 55d53aa35fe..05d53208f8d 100644 --- a/app/jsx/context_cards/GraphQLStudentContextTray.js +++ b/app/jsx/context_cards/GraphQLStudentContextTray.js @@ -95,13 +95,24 @@ const SCC_QUERY = gql` } ` +// for admins who can view the roster but not the course list +function placeholderCourse(courseId) { + return { + _id: courseId, + permissions: {}, + submissionsConnection: { + edges: [] + } + } +} + export default props => { return ( {({data, loading}) => { const {course, user} = data - return + return }} diff --git a/app/jsx/context_cards/StudentContextTray.js b/app/jsx/context_cards/StudentContextTray.js index 6e1e7a8f0cb..cff932adaa5 100644 --- a/app/jsx/context_cards/StudentContextTray.js +++ b/app/jsx/context_cards/StudentContextTray.js @@ -206,7 +206,7 @@ export default class StudentContextTray extends React.Component {