Fix class sorting bug and move datetime picker down
This commit is contained in:
@@ -115,7 +115,7 @@ export function CourseDetail(props) {
|
||||
|
||||
<Table.Body>
|
||||
{course.sessions.length ?
|
||||
course.sessions.sort((a, b) => a.datetime < b.datetime).map((x, i) =>
|
||||
course.sessions.sort((a, b) => a.datetime < b.datetime ? 1 : -1).slice(0,10).map((x, i) =>
|
||||
<Table.Row key={i}>
|
||||
<Table.Cell>
|
||||
<Link to={'/classes/'+x.id}>
|
||||
|
||||
Reference in New Issue
Block a user