Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix return notFound when composing props

Luke Vella1710c3bee6d2
diff --git a/packages/backend/next/utils.ts b/packages/backend/next/utils.ts
index 7f930cbf6..c46dfce00 100644
--- a/packages/backend/next/utils.ts
+++ b/packages/backend/next/utils.ts
@@ -8,6 +8,10 @@ export function composeGetServerSideProps(
for (const getServerSideProps of fns) {
const fnRes = await getServerSideProps(ctx);
+ if ("notFound" in fnRes) {
+ return fnRes;
+ }
+
if ("redirect" in fnRes) {
return fnRes;
}