Skip to content

Commit 0fd13b6

Browse files
committed
Logic to show/hide filmmaker description on mobile
1 parent f07d489 commit 0fd13b6

File tree

1 file changed

+9
-2
lines changed
  • pages/collections/la-rebellion/filmmakers

1 file changed

+9
-2
lines changed

pages/collections/la-rebellion/filmmakers/index.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,18 @@ const parsedFilmmakerListings = computed(() => {
126126
if (currentList.value.length === 0) return []
127127
128128
return currentList.value.map((obj) => {
129+
let filmmakerDescription
130+
131+
if (!isMobile.value) {
132+
filmmakerDescription = obj._source.richText
133+
} else {
134+
filmmakerDescription = null
135+
}
136+
129137
return {
130-
...obj._source,
131138
to: `/${obj._source.uri}`,
132139
title: obj._source.title,
133-
description: obj._source.richText,
140+
description: filmmakerDescription,
134141
image: parseImage(obj),
135142
}
136143
})

0 commit comments

Comments
 (0)