You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is called on page load as getUserProjects(007) with a hard-coded octal as an argument.
The definition is let getUserProjects = async function (lookupID) { but lookupID is never used.
let projectName = ""; is set and then never heard from again.
return projectList = await fetch(url, { seems to assign the fetch to an unused variable just to force the await before the return. Also, the url variable is always and just the String "projects" so it might not be important to pull out.
4 way elif could probably be a switch.
Errors are caught but not reported to the UI unless they are successful errors with 40x codes.
The text was updated successfully, but these errors were encountered:
This is called on page load as
getUserProjects(007)
with a hard-coded octal as an argument.The definition is
let getUserProjects = async function (lookupID) {
but lookupID is never used.let projectName = "";
is set and then never heard from again.return projectList = await fetch(url, {
seems to assign the fetch to an unused variable just to force the await before the return. Also, theurl
variable is always and just the String "projects" so it might not be important to pull out.4 way elif could probably be a switch.
Errors are caught but not reported to the UI unless they are successful errors with 40x codes.
The text was updated successfully, but these errors were encountered: