Skip to content

Commit

Permalink
chore: update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 28, 2024
1 parent 88d5719 commit 5d2dc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/ConfigItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const extraConfigs = computed(() => {
</div>
</div>
</div>
<div v-if="Object.keys(config.rules || {}).length">
<div v-if="config.rules && Object.keys(config.rules).length">
<div flex="~ gap-2 items-center">
<div i-ph-list-dashes-duotone my1 flex-none />
<div>Rules ({{ Object.keys(config.rules).length }})</div>
Expand Down

0 comments on commit 5d2dc05

Please sign in to comment.