diff --git a/web/src/routes/(user)/people/+page.svelte b/web/src/routes/(user)/people/+page.svelte index 09d36890f5..2451f118c9 100644 --- a/web/src/routes/(user)/people/+page.svelte +++ b/web/src/routes/(user)/people/+page.svelte @@ -439,10 +439,10 @@ {/if} - {#if countVisiblePeople > 0} + {#if countVisiblePeople > 0 && (!searchName || searchedPeopleLocal.length > 0)}
- {#each people as person, index (person.id)} - {#if !person.isHidden && (searchName ? searchedPeopleLocal.some((searchedPerson) => searchedPerson.id === person.id) : true)} + {#if searchName} + {#each searchedPeopleLocal as person, index (person.id)} handleMergePeople(person)} on:hide-person={() => handleHidePerson(person)} /> - {/if} - {/each} + {/each} + {:else} + {#each people as person, index (person.id)} + {#if !person.isHidden} + handleChangeName(person)} + on:set-birth-date={() => handleSetBirthDate(person)} + on:merge-people={() => handleMergePeople(person)} + on:hide-person={() => handleHidePerson(person)} + /> + {/if} + {/each} + {/if}
{:else}
-

No people

+

+ {`No people${searchName ? ` named "${searchName}"` : ''}`} +

{/if}