Skip to content

Commit

Permalink
[B] Correct format of journal volume select value
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend committed Dec 19, 2023
1 parent b936ae2 commit ed7d957
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions client/src/backend/containers/project/Properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ function ProjectPropertiesContainer({ project }) {
? { avatar: avatarData }
: {};

const relationships = data.relationships?.subjects
? { subjects: { data: data.relationships?.subjects } }
: {};
const { subjects, journalVolume } = data.relationships ?? {};

const relationships = {
...(subjects && { subjects: { data: subjects } }),
...(journalVolume && {
journalVolume: {
data: journalVolume
}
})
};

return {
relationships,
Expand Down

0 comments on commit ed7d957

Please sign in to comment.