Skip to content

Commit

Permalink
fix error caused by dashboard group count (#149)
Browse files Browse the repository at this point in the history
* fix error caused by dashboard group count
  • Loading branch information
MauserBitfly authored Mar 26, 2024
1 parent 236011f commit 80ef619
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/components/dashboard/group/GroupSelection.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import type { VDBOverviewGroup } from '~/types/api/validator_dashboard'
import { DAHSHBOARDS_ALL_GROUPS_ID } from '~/types/dashboard'
interface Props {
Expand All @@ -10,10 +11,10 @@ const emit = defineEmits<{(e: 'setGroup', value: number): void}>()
const { overview } = storeToRefs(useValidatorDashboardOverviewStore())
const list = computed(() => {
const list = computed<VDBOverviewGroup[]>(() => {
const groups = overview.value?.groups ?? []
if (props.includeAll) {
return [{ id: DAHSHBOARDS_ALL_GROUPS_ID, name: '' }].concat(groups)
return [{ id: DAHSHBOARDS_ALL_GROUPS_ID, name: '', count: 0 }].concat(groups)
}
return groups
})
Expand Down

0 comments on commit 80ef619

Please sign in to comment.