mirror of
https://github.com/immich-app/immich.git
synced 2025-04-21 07:26:25 +02:00
fix(web): better merge direction (#12601)
This commit is contained in:
parent
230eff4e1a
commit
d03e97f650
1 changed files with 5 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
|||
await goto(`${AppRoute.PEOPLE}/${person.id}?${$page.url.searchParams.toString()}`);
|
||||
};
|
||||
|
||||
const onSelect = (selected: PersonResponseDto) => {
|
||||
const onSelect = async (selected: PersonResponseDto) => {
|
||||
if (selectedPeople.includes(selected)) {
|
||||
selectedPeople = selectedPeople.filter((person) => person.id !== selected.id);
|
||||
return;
|
||||
|
@ -62,6 +62,10 @@
|
|||
}
|
||||
|
||||
selectedPeople = [selected, ...selectedPeople];
|
||||
|
||||
if (selectedPeople.length === 1 && !person.name && selected.name) {
|
||||
await handleSwapPeople();
|
||||
}
|
||||
};
|
||||
|
||||
const handleMerge = async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue