notifications : fix sorting

This commit is contained in:
isUnknown 2024-11-22 09:53:58 +01:00
parent bb44f7727e
commit 62b2b8c617
2 changed files with 6 additions and 5 deletions

View file

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