mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	fix(web): better merge direction (#12601)
This commit is contained in:
		
							parent
							
								
									230eff4e1a
								
							
						
					
					
						commit
						d03e97f650
					
				@ -47,7 +47,7 @@
 | 
				
			|||||||
    await goto(`${AppRoute.PEOPLE}/${person.id}?${$page.url.searchParams.toString()}`);
 | 
					    await goto(`${AppRoute.PEOPLE}/${person.id}?${$page.url.searchParams.toString()}`);
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const onSelect = (selected: PersonResponseDto) => {
 | 
					  const onSelect = async (selected: PersonResponseDto) => {
 | 
				
			||||||
    if (selectedPeople.includes(selected)) {
 | 
					    if (selectedPeople.includes(selected)) {
 | 
				
			||||||
      selectedPeople = selectedPeople.filter((person) => person.id !== selected.id);
 | 
					      selectedPeople = selectedPeople.filter((person) => person.id !== selected.id);
 | 
				
			||||||
      return;
 | 
					      return;
 | 
				
			||||||
@ -62,6 +62,10 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    selectedPeople = [selected, ...selectedPeople];
 | 
					    selectedPeople = [selected, ...selectedPeople];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (selectedPeople.length === 1 && !person.name && selected.name) {
 | 
				
			||||||
 | 
					      await handleSwapPeople();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const handleMerge = async () => {
 | 
					  const handleMerge = async () => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user