Skip to content

Commit

Permalink
Merge pull request #9 from Arzte/requirements
Browse files Browse the repository at this point in the history
Only show requirements if they exist
  • Loading branch information
ltouroumov authored Jul 2, 2024
2 parents d59ea14 + 4d756ee commit 181bb23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/viewer/ViewRequirement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
</div>
<div v-else-if="req.type === 'or'">
<span v-for="(orReq, idx) in req.orRequired" :key="idx">
<span v-if="idx > 0">, or</span>
{{ getObject(orReq.req)?.title ?? '???' }}
<div v-if="orReq.req">
<span v-if="idx > 0">, or</span>
{{ getObject(orReq.req)?.title ?? '???' }}
</div>
</span>
</div>
<div v-else>Unknown Condition</div>
Expand Down

0 comments on commit 181bb23

Please sign in to comment.