Fixed infinite event-type page loop after onboarding (#1782)
* added await to the promise * removed logging remnants * console log removed Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/1783/head^2
parent
aef6b70d8b
commit
55f1d727f8
|
@ -242,7 +242,7 @@ export default function Onboarding(props: inferSSRProps<typeof getServerSideProp
|
|||
if (!props.eventTypes || props.eventTypes.length === 0) {
|
||||
const eventTypes = await getEventTypes();
|
||||
if (eventTypes.length === 0) {
|
||||
Promise.all(
|
||||
await Promise.all(
|
||||
DEFAULT_EVENT_TYPES.map(async (event) => {
|
||||
return await createEventType(event);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue