fix(web): count hidden people (#7417)

fix: count hidden people
This commit is contained in:
martin
2024-02-26 22:58:52 +01:00
committed by GitHub
parent 3e8af16270
commit 8a05ff51e9
2 changed files with 4 additions and 2 deletions

View File

@@ -212,7 +212,9 @@
people = people.filter((person: PersonResponseDto) => person.id !== personToMerge.id);
people = people.map((person: PersonResponseDto) => (person.id === personToBeMergedIn.id ? mergedPerson : person));
countHiddenPeople--;
if (personToMerge.isHidden) {
countHiddenPeople--;
}
countTotalPeople--;
notificationController.show({
message: 'Merge people successfully',