Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
fix: Invite links for group
Browse files Browse the repository at this point in the history
  • Loading branch information
C4RR0T02 committed Jul 5, 2023
1 parent 44b805d commit d0fb9b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pages/dashboard/admin/groups/[shortName].vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ const options = ref([
])
async function createlink() {
if (!inviteFormData.role)
if (groupData.value === undefined || !inviteFormData.role)
return
inviteFormData.pending = true
const err = await group.createInvite(groupData, inviteFormData.role)
const err = await group.createInvite(groupData.value.shortName, inviteFormData.role)
if (err)
inviteFormData.error = err
Expand All @@ -139,7 +139,10 @@ function copyLink(code: string) {
async function delinvite(code: string) {
inviteFormData.pendingDel = code
const err = await group.delInvite(groupData, code)
if (groupData.value === undefined)
return
const err = await group.delInvite(groupData.value.shortName, code)
if (err)
inviteFormData.error = err
Expand Down

0 comments on commit d0fb9b5

Please sign in to comment.