WIP Поправила опечатки

This commit is contained in:
Daria Golova
2023-05-11 11:18:16 +03:00
parent b26d3bf466
commit d5501b9f3d
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@
@click="invertSorting"
)
.flex.py-4.w-full.color-grey.text-base.justify-center
span.opacity-50 {{ `Осмотров: ${protocolsData?.length}` }}
span.opacity-50 {{ `Осмотров: ${sortingProtocols?.length}` }}
.flex.flex-col.gap-y-2
medical-protocol-card(
v-for="protocol in sortingProtocols", :key="protocol.id",
@@ -91,8 +91,8 @@ export default {
.map((elem) => {
return elem?.start.slice(0, 4);
})
.sort((first, second) => first - second);
return [...new Set(years)];
.sort((first, second) => second - first);
return this.sorting ? [...new Set(years.reverse())] : [...new Set(years)];
},
sortingProtocols() {
if (!this.protocolsData) return [];