Skip to content
Snippets Groups Projects
Commit ac4fe29e authored by GustavChile's avatar GustavChile
Browse files

Changed order of function for homePage to make it load faster

parent aedd0813
No related branches found
No related tags found
3 merge requests!139The members of the project should be showing now in pgsa pages, but there are...,!134The members of the project should be showing now in pgsa pages, but there are...,!107Added autofill from database into text boxes, but now data is taken from wrong...
......@@ -215,10 +215,7 @@ async function createNewIdeaCard(
await createNewCards("HomePageIdeaCardDiv",suggestionContainer, user.id);
}
const projectContainer = document.getElementById("project-container");
if(projectContainer) {
await getProjects(projectContainer, user.id);
}
console.log(user.firstName + "user.firstname")
const nameHeaderElement = document.getElementById('user-name-header')
const nameElement = document.getElementById('user-name');
......@@ -238,6 +235,10 @@ async function createNewIdeaCard(
roleElement.textContent = "undefined";
}
const projectContainer = document.getElementById("project-container");
if(projectContainer) {
await getProjects(projectContainer, user.id);
}
})
.catch(error => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment