Attempting refreshes
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 30s
Music Collection CI Workflow / test (./frontend) (push) Successful in 36s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 52s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 25s

This commit is contained in:
Phill Pover 2025-04-07 07:18:26 +01:00
parent 4fc59d28dd
commit 62acd6a2d0
2 changed files with 12 additions and 0 deletions

View File

@ -49,6 +49,8 @@ export default function Page() {
} else { } else {
await updateSong(formData); await updateSong(formData);
} }
const data = await getAlbum(parseInt(albumId));
setAlbum(data);
} catch (error) { } catch (error) {
console.error("Error creating Song: ", error); console.error("Error creating Song: ", error);
} }
@ -81,6 +83,8 @@ export default function Page() {
} catch (error) { } catch (error) {
console.error(`Error getting song with ID ${songId}:`, error); console.error(`Error getting song with ID ${songId}:`, error);
} }
const data = await getAlbum(parseInt(albumId));
setAlbum(data);
} else { } else {
console.error("Couldn't get ID of clicked element"); console.error("Couldn't get ID of clicked element");
} }
@ -94,6 +98,8 @@ export default function Page() {
} catch (error) { } catch (error) {
console.error(`Error deleting song with ID ${songId}:`, error); console.error(`Error deleting song with ID ${songId}:`, error);
} }
const data = await getAlbum(parseInt(albumId));
setAlbum(data);
} else { } else {
console.error("Couldn't get ID of clicked element"); console.error("Couldn't get ID of clicked element");
} }

View File

@ -44,6 +44,8 @@ export default function Page() {
} else { } else {
await updateAlbum(formData); await updateAlbum(formData);
} }
const data = await getAlbums();
setAlbums(data);
} catch (error) { } catch (error) {
console.error("Error creating Album: ", error); console.error("Error creating Album: ", error);
} }
@ -74,6 +76,8 @@ export default function Page() {
} catch (error) { } catch (error) {
console.error(`Error getting album with ID ${id}:`, error); console.error(`Error getting album with ID ${id}:`, error);
} }
const data = await getAlbums();
setAlbums(data);
} else { } else {
console.error("Couldn't get ID of clicked element"); console.error("Couldn't get ID of clicked element");
} }
@ -87,6 +91,8 @@ export default function Page() {
} catch (error) { } catch (error) {
console.error(`Error deleting album with ID ${id}:`, error); console.error(`Error deleting album with ID ${id}:`, error);
} }
const data = await getAlbums();
setAlbums(data);
} else { } else {
console.error("Couldn't get ID of clicked element"); console.error("Couldn't get ID of clicked element");
} }