reverse sort events within hour

This commit is contained in:
Blake Blackshear 2021-08-29 07:46:09 -05:00
parent 46fe06e779
commit d74021af47

View File

@ -35,7 +35,7 @@ export default function RecordingPlaylist({ camera, recordings, selectedDate, se
</div> </div>
<div className="flex-1 text-right">{item.events.length} Events</div> <div className="flex-1 text-right">{item.events.length} Events</div>
</div> </div>
{item.events.map((event) => ( {item.events.slice().reverse().map((event) => (
<EventCard camera={camera} event={event} delay={item.delay} /> <EventCard camera={camera} event={event} delay={item.delay} />
))} ))}
</div> </div>