Skip to content

The open-source app everyone uses to manage agents at work

fix: default import target to new company instead of existing

Dotta5d6dadda83c3
diff --git a/ui/src/pages/CompanyImport.tsx b/ui/src/pages/CompanyImport.tsx
index 62c4d74732..ffb4b20eb4 100644
--- a/ui/src/pages/CompanyImport.tsx
+++ b/ui/src/pages/CompanyImport.tsx
@@ -478,7 +478,7 @@ export function CompanyImport() {
} | null>(null);
// Target state
- const [targetMode, setTargetMode] = useState<"existing" | "new">("existing");
+ const [targetMode, setTargetMode] = useState<"existing" | "new">("new");
const [newCompanyName, setNewCompanyName] = useState("");
// Preview state
@@ -897,10 +897,10 @@ export function CompanyImport() {
setImportPreview(null);
}}
>
+ <option value="new">Create new company</option>
<option value="existing">
Existing company: {selectedCompany?.name}
</option>
- <option value="new">Create new company</option>
</select>
</Field>