Fixes #337: Event times ordered seemingly random
This commit is contained in:
parent
d2d0dea858
commit
b136941948
2 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||||
},
|
},
|
||||||
].filter((availability): boolean => typeof availability["days"] !== "undefined");
|
].filter((availability): boolean => typeof availability["days"] !== "undefined");
|
||||||
|
|
||||||
|
workingHours.sort((a, b) => a.startTime - b.startTime);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
user,
|
user,
|
||||||
|
|
|
@ -850,6 +850,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ req, query
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
availability.sort((a, b) => a.startTime - b.startTime);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
user,
|
user,
|
||||||
|
|
Loading…
Reference in a new issue