Skip to content

Commit

Permalink
Articles null in corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jul 1, 2023
1 parent 57b1fc8 commit 40f8aeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front/src/components/corpus/CorpusSelectItems.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function CorpusSelectItems ({ articleId }) {
id={c._id}
name={c.name}
articleId={articleId}
selected={c.articles.map((a) => a.article._id).includes(articleId)}
selected={c.articles.map((a) => a?.article?._id).includes(articleId)}
onChange={handleCorpusUpdate}
/>)}
</>
Expand Down
2 changes: 1 addition & 1 deletion graphql/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type Article {
owner: User
contributors: [ArticleContributor]!
workingVersion: WorkingVersion
versions(limit: Int, page: Int): [Version!]!
versions(limit: Int, page: Int): [Version!]
tags(limit: Int, page: Int): [Tag!]!
preview: ArticlePreviewSettings
collaborativeSession: CollaborativeSession
Expand Down
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Article {
title: String
updateWorkingVersion(content: WorkingVersionInput!): Article
updatedAt: DateTime
versions(limit: Int, page: Int): [Version!]!
versions(limit: Int, page: Int): [Version!]
workingVersion: WorkingVersion
workspaces: [Workspace!]
zoteroLink: String
Expand Down

0 comments on commit 40f8aeb

Please sign in to comment.