Skip to content

Commit

Permalink
fix: correct condition on showing the rules list
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 28, 2024
1 parent 0e286f1 commit 88d5719
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-else-if="config.rules">
<div v-if="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>

Check failure on line 168 in app/components/ConfigItem.vue

View workflow job for this annotation

GitHub Actions / lint

No overload matches this call.
Expand Down

0 comments on commit 88d5719

Please sign in to comment.