buggregator / frontend

Buggregator UI
https://buggregator.dev/
15 stars 8 forks source link

Fixes ordering for loaded events by API #81

Closed butschster closed 9 months ago

butschster commented 9 months ago

This PR addresses an issue regarding the ordering of events after a page reload. Initially, all requested events are correctly fetched in descending order. However, a discrepancy arises when the frontend adds new events to the local store. Instead of inserting new events at the beginning of the array, which would maintain the descending order, they are appended to the end. This fix ensures that new events are correctly placed at the start of the array.

fixes #80