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>
This commit is contained in:
		
							parent
							
								
									aef6b70d8b
								
							
						
					
					
						commit
						55f1d727f8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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 a new issue
	
	 Syed Ali Shahbaz
						Syed Ali Shahbaz