Skip to content

Commit

Permalink
Merge pull request #1662 from bcgov/feature/EDX-2590
Browse files Browse the repository at this point in the history
fixes issue with table display for isAdult and isGraduated
  • Loading branch information
eckermania authored Jun 25, 2024
2 parents c6b7421 + 468d0b3 commit 0dfbf5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/common/CustomTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
</span>
<div v-else-if="column.key === 'isAdult'">
<span v-if="props.item['isAdult'] !== null || props.item['isAdult' !== undefined]">{{ props.item['isAdult'] === "true" ? 'Yes' : 'No' }}</span>
<span v-if="props.item['isAdult'] !== null && props.item['isAdult'] !== undefined">{{ props.item['isAdult'] === "true" ? 'Yes' : 'No' }}</span>
<span v-else>-</span>
</div>
<div v-else-if="column.key === 'fte'">
Expand Down Expand Up @@ -149,7 +150,8 @@
<span v-else>-</span>
</div>
<div v-else-if="column.subHeader.key === 'isGraduated'">
<span v-if="props.item['isGraduated'] !== null || props.item['isGraduated'] !== undefined">{{ props.item['isGraduated'] === "true" ? 'Yes' :'No' }}</span>
<span v-if="props.item['isGraduated'] !== null && props.item['isGraduated'] !== undefined">{{ props.item['isGraduated'] === "true" ? 'Yes' :'No' }}</span>
<span v-else>-</span>
</div>
<span v-else-if="props.item[column.subHeader.key]">{{ props.item[column.subHeader.key] }}</span>
<span v-else>-</span>
Expand Down

0 comments on commit 0dfbf5a

Please sign in to comment.