Fixing messages
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Successful in 40s
Music Collection CI Workflow / deploy (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been cancelled
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Successful in 40s
Music Collection CI Workflow / deploy (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been cancelled
This commit is contained in:
parent
ddf1a35536
commit
6d7f3b4094
@ -49,21 +49,21 @@ export default function Page() {
|
||||
const result = await createAlbum(formData)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
return response
|
||||
}
|
||||
Promise.reject(response);
|
||||
})
|
||||
.catch(error => {return error.json()});
|
||||
handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${result}`, true);
|
||||
.catch(error => {return error});
|
||||
handleSnackbar(`Successfully created Album with ID ${formData.get("id")}: ${result}`, true);
|
||||
} else {
|
||||
const result = await updateAlbum(formData)
|
||||
.then(response => {
|
||||
if (response.ok) {
|
||||
return response.json()
|
||||
return response
|
||||
}
|
||||
Promise.reject(response);
|
||||
})
|
||||
.catch(error => {return error.json()});
|
||||
.catch(error => {return error});
|
||||
handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${result}`, true);
|
||||
}
|
||||
revalidateAlbums();
|
||||
|
Loading…
x
Reference in New Issue
Block a user