This commit is contained in:
tree 2023-03-30 12:28:34 +02:00
parent a0c22419e8
commit a0f799ba8c
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
function processItems(_items, query = {}) {
if (!_items) return [];
_items = JSON.parse(JSON.stringify(_items));
_items = [..._items]
if (type === 'events') {
_items = _items.sort((x, y) => (x.date > y.date ? 1 : -1));
}