Fixing messages
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Failing after 37s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been skipped
Music Collection CI Workflow / deploy (push) Has been skipped

This commit is contained in:
Phill Pover 2025-04-07 11:49:59 +01:00
parent 4e4c048f84
commit 5a53b93624

View File

@ -46,7 +46,7 @@ export default function Page() {
const formData = new FormData(event.currentTarget);
try {
if (formData.get('id') == "") {
const result = await createAlbum(formData)
await createAlbum(formData)
.then(response => {
if (response.ok) {
handleSnackbar(`Successfully created Album with ID ${formData.get("id")}: ${result}`, true);
@ -55,7 +55,7 @@ export default function Page() {
})
.catch(error => {handleSnackbar(`Failed to create Album with ID ${formData.get("id")}: ${result}`, false);});
} else {
const result = await updateAlbum(formData)
await updateAlbum(formData)
.then(response => {
if (response.ok) {
handleSnackbar(`Successfully updated Album with ID ${formData.get("id")}: ${result}`, true);