Skip to content

Commit

Permalink
🪟🧪🐛 Fix redirection in signup source selector experiment (#19382)
Browse files Browse the repository at this point in the history
  • Loading branch information
letiescanciano authored Nov 15, 2022
1 parent a3e83c3 commit 342bfb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions airbyte-webapp/src/packages/cloud/views/DefaultView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ export const DefaultView: React.FC = () => {
}
replace
// exp-signup-selected-source-definition
{...(isSignupSourceSelectorExperiment && {
state: { sourceDefinitionId },
to: `/${RoutePaths.Workspaces}/${workspaces[0].workspaceId}/${RoutePaths.Connections}/${RoutePaths.ConnectionNew}`,
})}
{...(isSignupSourceSelectorExperiment &&
sourceDefinitionId && {
state: { sourceDefinitionId },
to: `/${RoutePaths.Workspaces}/${workspaces[0].workspaceId}/${RoutePaths.Connections}/${RoutePaths.ConnectionNew}`,
})}
/>
);
};

0 comments on commit 342bfb8

Please sign in to comment.