Changed console logging of errors to use console error logging

This commit is contained in:
Jesper Kristensen
2025-05-15 21:35:07 +02:00
parent ca2cfb5bad
commit 20c1c3f66b
23 changed files with 269 additions and 269 deletions

View File

@@ -20,7 +20,7 @@ export const createNewGroup = async (token: string, group: object) => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -51,7 +51,7 @@ export const getGroups = async (token: string = '') => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -83,7 +83,7 @@ export const getGroupById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -118,7 +118,7 @@ export const updateGroupById = async (token: string, id: string, group: object)
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -150,7 +150,7 @@ export const deleteGroupById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});