diff --git a/dashboard/src/main/home/Home.tsx b/dashboard/src/main/home/Home.tsx index 1dba9f1fc2..13a2fbaa88 100644 --- a/dashboard/src/main/home/Home.tsx +++ b/dashboard/src/main/home/Home.tsx @@ -146,7 +146,7 @@ const Home: React.FC = (props) => { (item: ProjectListType) => item.id === id ); if (foundProjectListEntry === undefined) { - id = projectList[0].id + id = projectList[0].id; } const project = await api @@ -451,7 +451,8 @@ const Home: React.FC = (props) => { )} - {currentProject?.validate_apply_v2 ? ( + {currentProject?.validate_apply_v2 && + currentProject.preview_envs_enabled ? ( <> @@ -551,6 +552,7 @@ const Home: React.FC = (props) => { render={() => } /> } />