Skip to content

Commit

Permalink
Fix audit log error is not propagated
Browse files Browse the repository at this point in the history
This fixes an accidentally silenced error when the audit log fails to
load on a user page.
  • Loading branch information
KevSlashNull committed Oct 24, 2024
1 parent 31b3f56 commit ca5ccc5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions web/admin/components/user/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ await refresh();

<template>
<div>
<user-card
class="mb-5"
:did="subject?.did || props.did"
:pending="pending"
:variant="variant"
@next="handleNext"
/>
<shared-card v-if="error" variant="error">{{ error }}</shared-card>
<div v-else>
<user-card
class="mb-5"
:did="subject?.did || props.did"
:pending="pending"
:variant="variant"
@next="handleNext"
/>
<user-audit-log
ref="auditLog"
:subject="subject"
:did="subject?.did || props.did"
/>
</div>
<user-audit-log
v-else
ref="auditLog"
:subject="subject"
:did="subject?.did || props.did"
@error="error = $event"
/>
</div>
</template>

0 comments on commit ca5ccc5

Please sign in to comment.