Skip to content

Commit

Permalink
Fix staff page
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 authored Mar 27, 2024
1 parent 5034a64 commit c9b6a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Staff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default defineComponent({
name: group.name,
staffs: [
...group.chiefs.map((chief) => ({ ...chief, isChief: true })),
...group.members.map((chief) => ({ ...chief, isChief: false }))
...group.members.map((chief) => ({ ...chief, isChief: false })).filter((member) => !group.chiefs.find((chief) => chief.name === member.name))
]
}
})
Expand Down

0 comments on commit c9b6a3d

Please sign in to comment.