Skip to content

Commit

Permalink
Set runNow to false when editing existing workflows (#1458)
Browse files Browse the repository at this point in the history
Fixes #1339
  • Loading branch information
tw4l committed Dec 18, 2023
1 parent 73e2026 commit 4fe0140
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/pages/org/workflow-editor.ts
Expand Up @@ -187,7 +187,7 @@ const getDefaultFormState = (): FormState => ({
minute: 0,
period: "AM",
},
runNow: true,
runNow: false,
jobName: "",
browserProfile: null,
tags: [],
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4fe0140

Please sign in to comment.