Skip to content

Commit

Permalink
handle undefined taxon
Browse files Browse the repository at this point in the history
  • Loading branch information
wbbaker committed Sep 30, 2024
1 parent c02c541 commit e30c4dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/otus/components/TaxaInfo.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<template>
<div>
<h2 class="text-1xl capitalize">
{{ store.taxon.rank || 'Combination' }}
{{ store.taxon?.rank || 'Combination' }}
</h2>
<h1 class="text-xl dark:text-gray-100">
<span>
<span
:title="store.taxon.short_status"
v-html="store.taxon.full_name_tag"
:title="store.taxon?.short_status"
v-html="store.taxon?.full_name_tag"
/>
<span
v-if="!store.taxon.is_valid"
v-if="!store.taxon?.is_valid"
class="ml-1 text-red-600"
title="Invalid"
>
Expand Down

0 comments on commit e30c4dc

Please sign in to comment.