Skip to content

Commit

Permalink
ff on preview routes (#3651)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Sep 26, 2023
1 parent 6c9c760 commit a615920
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dashboard/src/main/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const Home: React.FC<Props> = (props) => {
(item: ProjectListType) => item.id === id
);
if (foundProjectListEntry === undefined) {
id = projectList[0].id
id = projectList[0].id;
}

const project = await api
Expand Down Expand Up @@ -451,7 +451,8 @@ const Home: React.FC<Props> = (props) => {
<AppDashboard />
)}
</Route>
{currentProject?.validate_apply_v2 ? (
{currentProject?.validate_apply_v2 &&
currentProject.preview_envs_enabled ? (
<>
<Route path={`/preview-environments/apps/:appName/:tab`}>
<AppView />
Expand Down Expand Up @@ -551,6 +552,7 @@ const Home: React.FC<Props> = (props) => {
render={() => <GuardedIntegrations />}
/>
<Route
exact
path={"/project-settings"}
render={() => <GuardedProjectSettings />}
/>
Expand Down

0 comments on commit a615920

Please sign in to comment.