diff --git a/packages/web/src/routes/SettingsPage.tsx b/packages/web/src/routes/SettingsPage.tsx index 07a07690fc..664dfae2f4 100644 --- a/packages/web/src/routes/SettingsPage.tsx +++ b/packages/web/src/routes/SettingsPage.tsx @@ -251,15 +251,6 @@ function EnvVarsPanel({ codebaseId }: { codebaseId: string }): React.ReactElemen ); } -function isEnvLeakError(error: unknown): boolean { - return ( - error instanceof Error && - 'status' in error && - (error as Error & { status: number }).status === 422 && - error.message.startsWith('Cannot add codebase') - ); -} - function ProjectsSection(): React.ReactElement { const queryClient = useQueryClient(); const [addPath, setAddPath] = useState(''); @@ -394,30 +385,43 @@ function ProjectsSection(): React.ReactElement { )} {showAdd ? ( -
- { - setAddPath(e.target.value); - }} - placeholder="/path/to/repository" - className="flex-1" - /> - - -
+
+
+ { + setAddPath(e.target.value); + }} + placeholder="/path/to/repository" + className="flex-1" + /> + + +
+ +
) : (