Skip to content

Commit

Permalink
fix(ui): sort recordings by date
Browse files Browse the repository at this point in the history
fix #174
  • Loading branch information
sualko committed Aug 4, 2021
1 parent 087abff commit 7414183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/Manager/RoomRow.tsx
Expand Up @@ -235,7 +235,7 @@ const RoomRow: React.FC<Props> = (props) => {
<td colSpan={11}>
<table>
<tbody>
{recordings?.map(recording => <RecordingRow key={recording.id} recording={recording} deleteRecording={deleteRecording} storeRecording={storeRecording} />)}
{recordings?.sort((r1, r2) => r1.startTime - r2.startTime).map(recording => <RecordingRow key={recording.id} recording={recording} deleteRecording={deleteRecording} storeRecording={storeRecording} />)}
</tbody>
</table>
</td>
Expand Down

0 comments on commit 7414183

Please sign in to comment.