Do not count duplicates in speaker count
This commit is contained in:
rodič
a6f863d293
revize
1d71c29aaa
|
@ -18,13 +18,14 @@
|
||||||
const collections = [
|
const collections = [
|
||||||
{ title: 'Days', value: 10, col: 'schedule' },
|
{ title: 'Days', value: 10, col: 'schedule' },
|
||||||
{ title: 'Events', col: 'events', filter: (e) => !e.hidden },
|
{ 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: 'Places', col: 'places' },
|
||||||
{ title: 'Media Partners', col: 'media-partners' },
|
{ title: 'Media Partners', col: 'media-partners' },
|
||||||
//{ title: "Blockchains", col: "chains" },
|
//{ title: "Blockchains", col: "chains" },
|
||||||
//{ title: "Unions", col: "unions" },
|
//{ title: "Unions", col: "unions" },
|
||||||
{ title: 'Benefits', col: 'benefits' }
|
{ title: 'Benefits', col: 'benefits' }
|
||||||
];
|
];
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (['speakers', 'benefits', 'media-partner'].includes(type)) {
|
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') {
|
if (type === 'places') {
|
||||||
_items = _items.sort((x, y) => (x.capacity > y.capacity ? -1 : 1))
|
_items = _items.sort((x, y) => (x.capacity > y.capacity ? -1 : 1))
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu