Skip to content

Commit

Permalink
fix: validate statement.source before using it (#884)
Browse files Browse the repository at this point in the history
It's already checked in computed, but TS doesn't see it.
  • Loading branch information
Sekhmet authored Oct 16, 2024
1 parent c637dc8 commit 0284252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ui/src/views/SpaceUser/Statement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ watchEffect(() =>
class="text-skin-heading max-w-[592px]"
:body="statement.statement"
/>
<div v-if="shouldShowSource">
<div v-if="shouldShowSource && statement.source">
<h4 class="eyebrow text-skin-text mb-2">Source</h4>
<a
:href="SOURCE_ICONS[statement.source].link"
Expand Down

0 comments on commit 0284252

Please sign in to comment.