Set runNow to false when editing existing workflows (#1458)
Fixes #1339
This commit is contained in:
		
							parent
							
								
									73e20269ef
								
							
						
					
					
						commit
						4fe014067e
					
				| @ -187,7 +187,7 @@ const getDefaultFormState = (): FormState => ({ | ||||
|     minute: 0, | ||||
|     period: "AM", | ||||
|   }, | ||||
|   runNow: true, | ||||
|   runNow: false, | ||||
|   jobName: "", | ||||
|   browserProfile: null, | ||||
|   tags: [], | ||||
| @ -454,6 +454,9 @@ export class CrawlConfigEditor extends LiteElement { | ||||
| 
 | ||||
|   private getInitialFormState(): FormState { | ||||
|     const defaultFormState = getDefaultFormState(); | ||||
|     if (!this.configId) { | ||||
|       defaultFormState.runNow = true; | ||||
|     } | ||||
|     if (!this.initialWorkflow) return defaultFormState; | ||||
|     const formState: Partial<FormState> = {}; | ||||
|     const seedsConfig = this.initialWorkflow.config; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user