Skip to content

Commit

Permalink
Merge pull request #26 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Fix panel content
  • Loading branch information
José Luis Pereira authored and GitHub committed Mar 16, 2023
2 parents 08d7c78 + 8378d60 commit b86c1e7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VCard v-if="contentList.length">
<VCard v-if="contents.length">
<ContentTopic
v-for="(text, title) in contentList"
:key="title"
Expand All @@ -23,7 +23,7 @@ const props = defineProps({
const contents = ref([])
const contentList = computed(() =>
const contentList = computed(() =>
contents.value.reduce((acc, current) => {
if (acc[current.name]) {
acc[current.name].push(current.text)
Expand All @@ -37,7 +37,7 @@ const contentList = computed(() =>
watch(
() => props.otuId,
id => {
(id) => {
if (id) {
TaxonWorks.getOtuContent(id).then(({ data }) => {
contents.value = data
Expand All @@ -48,5 +48,4 @@ watch(
},
{ immediate: true }
)
</script>
</script>

0 comments on commit b86c1e7

Please sign in to comment.