Fix for javascript optional parameter formatting error
This commit is contained in:
		
							parent
							
								
									ee49bbde69
								
							
						
					
					
						commit
						10d06767c4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -540,7 +540,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: { | ||||
|  | @ -568,7 +568,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: { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus