Skip to content

Commit

Permalink
fix(audit): verify empty essential context
Browse files Browse the repository at this point in the history
  • Loading branch information
mtthp committed Nov 13, 2024
1 parent 296ad9a commit 201e219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/audit/AuditEntryInline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ import {
mdiTicket,
} from '@mdi/js';
import dayjs from 'dayjs';
import { isEmpty } from 'lodash';
import { PropType, computed } from 'vue';
const props = defineProps({
Expand All @@ -173,7 +174,7 @@ const props = defineProps({
const essentialContext = computed(() => {
const { memberId, member, ...rest } = props.event.context || {};
return rest;
return !isEmpty(rest) ? rest : null;
});
const icon = computed(() => {
Expand Down

0 comments on commit 201e219

Please sign in to comment.