Do not count duplicates in speaker count

This commit is contained in:
tree 2023-03-25 01:27:18 +01:00
rodič a6f863d293
revize 1d71c29aaa
2 změnil soubory, kde provedl 3 přidání a 2 odebrání

Zobrazit soubor

@ -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>

Zobrazit soubor

@ -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))