Skip to content

Commit

Permalink
Refactor creatorHref
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
obulat committed Nov 28, 2023
1 parent 1a5ef98 commit a5db8b1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions frontend/src/components/VMediaInfo/VByLine/VByLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,19 @@ export default defineComponent({
)
const searchStore = useSearchStore()
const creatorHref = computed(() => {
return showCreator.value && props.creator
? searchStore.getCollectionPath({
type: props.mediaType,
collectionParams: {
collection: "creator",
source: props.sourceSlug,
creator: props.creator,
},
})
: undefined
if (!props.creator) return undefined
return searchStore.getCollectionPath({
type: props.mediaType,
collectionParams: {
collection: "creator",
source: props.sourceSlug,
creator: props.creator,
},
})
})
const sourceHref = computed(() => {
return searchStore.getCollectionPath({
type: props.mediaType,
Expand Down

0 comments on commit a5db8b1

Please sign in to comment.