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:
parent
43fa4fc487
commit
5d6dadda83
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue