diff --git a/dashboard/src/main/home/Home.tsx b/dashboard/src/main/home/Home.tsx index 241c67aaa4..b92bd84426 100644 --- a/dashboard/src/main/home/Home.tsx +++ b/dashboard/src/main/home/Home.tsx @@ -140,6 +140,13 @@ const Home: React.FC = (props) => { Number(localStorage.getItem("currentProject")) || projectList[0].id; } + const foundProjectListEntry = projectList.find( + (item: ProjectListType) => item.id === id + ); + if (foundProjectListEntry === undefined) { + id = projectList[0].id + } + const project = await api .getProject("", {}, { id: id }) .then((res) => res.data as ProjectType);