Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Fix undefined event error

Dave Earleyfc6481bfab7d
diff --git a/frontend/src/queries/useGetEvent.ts b/frontend/src/queries/useGetEvent.ts
index 870c18ad0..377986919 100644
--- a/frontend/src/queries/useGetEvent.ts
+++ b/frontend/src/queries/useGetEvent.ts
@@ -13,5 +13,7 @@ export const useGetEvent = (eventId: IdParam) => {
const {data} = await eventsClient.findByID(eventId);
return data;
},
+
+ enabled: !!eventId,
});
};