fix(invitation-code): fix invitation code generation
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2375>
This commit is contained in:
parent
6678457d41
commit
15d6e7811a
|
@ -29,7 +29,7 @@ const submit = async () => {
|
|||
errors.value = []
|
||||
|
||||
try {
|
||||
const response = await axios.post('manage/users/invitations/', { code: code.value })
|
||||
const response = await axios.post('manage/users/invitations/', { code: code.value || undefined })
|
||||
invitations.unshift(response.data)
|
||||
code.value = ''
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue