forked from kompetenzinventar/ki-frontend
bessere anzeige search
This commit is contained in:
@ -92,11 +92,12 @@ export default {
|
||||
async submitFormEdit() {
|
||||
this.showErrorMessage = false
|
||||
this.showSuccessMessage = false
|
||||
const userId = store.state.currentUserId
|
||||
|
||||
try {
|
||||
const body = JSON.stringify(this.profile)
|
||||
const response = await fetch(
|
||||
`${this.apiUrl}/users/${store.currentUserId}/profile`,
|
||||
`${this.apiUrl}/users/${userId}/profile`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user