Skip to content

Commit

Permalink
fix: correct display of rel_type of characters in the detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Sep 25, 2024
1 parent 6349f98 commit 364ec3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/work/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const isLoading = computed(() => {
const characters = computed(() => {
return {
main: work.value?.characters
?.filter((character) => character.relevancy === "erwähnte Figur")
?.filter((character) => character.relevancy === "Hauptfigur")
.map((character) => {
const fictionality = character.fictionality ? character.fictionality[0] : "";
return {
Expand All @@ -50,7 +50,7 @@ const characters = computed(() => {
};
}),
secondary: work.value?.characters
?.filter((character) => character.relevancy === "erwähnte Figur")
?.filter((character) => character.relevancy === "Nebenfigur")
.map((character) => {
const fictionality = character.fictionality ? character.fictionality[0] : "";
return {
Expand Down

0 comments on commit 364ec3f

Please sign in to comment.