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,
|
minute: 0,
|
||||||
period: "AM",
|
period: "AM",
|
||||||
},
|
},
|
||||||
runNow: true,
|
runNow: false,
|
||||||
jobName: "",
|
jobName: "",
|
||||||
browserProfile: null,
|
browserProfile: null,
|
||||||
tags: [],
|
tags: [],
|
||||||
@ -454,6 +454,9 @@ export class CrawlConfigEditor extends LiteElement {
|
|||||||
|
|
||||||
private getInitialFormState(): FormState {
|
private getInitialFormState(): FormState {
|
||||||
const defaultFormState = getDefaultFormState();
|
const defaultFormState = getDefaultFormState();
|
||||||
|
if (!this.configId) {
|
||||||
|
defaultFormState.runNow = true;
|
||||||
|
}
|
||||||
if (!this.initialWorkflow) return defaultFormState;
|
if (!this.initialWorkflow) return defaultFormState;
|
||||||
const formState: Partial<FormState> = {};
|
const formState: Partial<FormState> = {};
|
||||||
const seedsConfig = this.initialWorkflow.config;
|
const seedsConfig = this.initialWorkflow.config;
|
||||||
|
Loading…
Reference in New Issue
Block a user