notifications : fix sorting
This commit is contained in:
parent
bb44f7727e
commit
62b2b8c617
2 changed files with 6 additions and 5 deletions
|
|
@ -137,11 +137,9 @@ const tabs = computed(() => {
|
|||
});
|
||||
|
||||
const sortedNotifications = computed(() => {
|
||||
const sortedNotifications = notifications.value.sort((a, b) => {
|
||||
dayjs(b.date).diff(dayjs(a.date));
|
||||
return [...notifications.value].sort((a, b) => {
|
||||
return dayjs(b.date).diff(dayjs(a.date));
|
||||
});
|
||||
|
||||
return sortedNotifications;
|
||||
});
|
||||
|
||||
function changeTab(newValue) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue