Do not count duplicates in speaker count
This commit is contained in:
parent
a6f863d293
commit
1d71c29aaa
|
@ -18,13 +18,14 @@
|
|||
const collections = [
|
||||
{ title: 'Days', value: 10, col: 'schedule' },
|
||||
{ title: 'Events', col: 'events', filter: (e) => !e.hidden },
|
||||
{ title: 'Speakers', col: 'speakers' },
|
||||
{ title: 'Speakers', col: 'speakers', value: processItemsList(data.bundle.speakers).length },
|
||||
{ title: 'Places', col: 'places' },
|
||||
{ title: 'Media Partners', col: 'media-partners' },
|
||||
//{ title: "Blockchains", col: "chains" },
|
||||
//{ title: "Unions", col: "unions" },
|
||||
{ title: 'Benefits', col: 'benefits' }
|
||||
];
|
||||
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
});
|
||||
}
|
||||
if (['speakers', 'benefits', 'media-partner'].includes(type)) {
|
||||
_items = _items.sort((x, y) => (x.name > y.name ? 1 : -1))
|
||||
_items = _items.sort((x, y) => (x.name.toLowerCase() > y.name.toLowerCase() ? 1 : -1))
|
||||
}
|
||||
if (type === 'places') {
|
||||
_items = _items.sort((x, y) => (x.capacity > y.capacity ? -1 : 1))
|
||||
|
|
Loading…
Reference in New Issue