Merge branch 'frontend' into gruppDM

This commit is contained in:
Davenludd 2024-04-03 18:07:18 +02:00
commit 91671b2b63
2 changed files with 52 additions and 2 deletions

View file

@ -538,7 +538,7 @@ export const api: API = {
): Promise<APIResponse<WeeklyReport>> {
try {
const response = await fetch(
`/api/getWeeklyReport?projectName=${projectName}&week=${week}&targetUser=${targetUser}`,
`/api/getWeeklyReport?projectName=${projectName}&week=${week}&targetUser=${targetUser ?? ""}`,
{
method: "GET",
headers: {
@ -566,7 +566,7 @@ export const api: API = {
): Promise<APIResponse<WeeklyReport[]>> {
try {
const response = await fetch(
`/api/getAllWeeklyReports/${projectName}?targetUser=${targetUser}`,
`/api/getAllWeeklyReports/${projectName}?targetUser=${targetUser ?? ""}`,
{
method: "GET",
headers: {