fix: default import target to new company instead of existing

The /company/import page now defaults the target dropdown to "Create new
company" instead of the current company. The existing company option is
still available in the dropdown.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dotta 2026-03-16 10:05:03 -05:00
parent 43fa4fc487
commit 5d6dadda83

View file

@ -478,7 +478,7 @@ export function CompanyImport() {
} | null>(null); } | null>(null);
// Target state // Target state
const [targetMode, setTargetMode] = useState<"existing" | "new">("existing"); const [targetMode, setTargetMode] = useState<"existing" | "new">("new");
const [newCompanyName, setNewCompanyName] = useState(""); const [newCompanyName, setNewCompanyName] = useState("");
// Preview state // Preview state
@ -897,10 +897,10 @@ export function CompanyImport() {
setImportPreview(null); setImportPreview(null);
}} }}
> >
<option value="new">Create new company</option>
<option value="existing"> <option value="existing">
Existing company: {selectedCompany?.name} Existing company: {selectedCompany?.name}
</option> </option>
<option value="new">Create new company</option>
</select> </select>
</Field> </Field>