@dcrackel/hematournamentui 1.0.293 → 1.0.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
<div class="w-96 p-4">
|
|
3
3
|
<div class="mb-4 px-4">
|
|
4
4
|
<TitledInput :inputValue="searchTerm"
|
|
5
|
-
placeholder="Enter
|
|
6
|
-
title="
|
|
5
|
+
placeholder="Enter Name to Search"
|
|
6
|
+
title="Search"
|
|
7
7
|
@update:value="updateDisplayName"/>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="overflow-y-auto h-[
|
|
9
|
+
<div class="overflow-y-auto h-[800px]">
|
|
10
10
|
<ul>
|
|
11
11
|
<li v-for="person in filteredPersons" :key="person.id" class="py-2 px-4 rounded-lg cursor-pointer">
|
|
12
12
|
<PoolFencerCard
|
|
@@ -55,12 +55,12 @@ export default {
|
|
|
55
55
|
filteredPersons() {
|
|
56
56
|
return this.persons
|
|
57
57
|
.filter(person => {
|
|
58
|
-
const displayName = person.
|
|
58
|
+
const displayName = person.DisplayName || ''; // Use DisplayName consistently
|
|
59
59
|
return displayName.toLowerCase().includes(this.searchTerm.toLowerCase());
|
|
60
60
|
})
|
|
61
61
|
.sort((a, b) => {
|
|
62
|
-
const nameA = (a.
|
|
63
|
-
const nameB = (b.
|
|
62
|
+
const nameA = (a.DisplayName || '').toLowerCase();
|
|
63
|
+
const nameB = (b.DisplayName || '').toLowerCase();
|
|
64
64
|
return nameA.localeCompare(nameB);
|
|
65
65
|
});
|
|
66
66
|
}
|