Skip to content

Commit aaab664

Browse files
authored
fix(member): only allow local as primary body (#2258)
1 parent 21a147c commit aaab664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/core/members/EditPrimaryBodyModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
primary_body_id: this.primaryBodyId
4545
}).then(() => {
4646
this.member.primary_body_id = this.primaryBodyId
47-
this.member.primary_body = this.member.bodies.find((body) => body.id === this.primaryBodyId)
47+
this.member.primary_body = this.member.bodies.find((body) => body.id === this.primaryBodyId && ['antenna', 'contact antenna', 'contact'].includes(body.type))
4848
this.showSuccess('Primary body is updated')
4949
this.isLoading = false
5050
this.$parent.close()

0 commit comments

Comments
 (0)