Skip to content

Commit 71ed920

Browse files
committed
only pass for patch
1 parent 5db5e60 commit 71ed920

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/features/crawl-workflows/workflow-editor.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type CrawlConfigParams = WorkflowParams & {
9797
seeds: Seed[];
9898
};
9999
};
100-
type WorkflowRunParams = { runNow: boolean; updateRunning: boolean };
100+
type WorkflowRunParams = { runNow: boolean; updateRunning?: boolean };
101101

102102
const STEPS = SECTIONS;
103103
type StepName = (typeof STEPS)[number];
@@ -2010,9 +2010,12 @@ https://archiveweb.page/images/${"logo.svg"}`}
20102010
const config: CrawlConfigParams & WorkflowRunParams = {
20112011
...this.parseConfig(),
20122012
runNow: Boolean(opts?.runNow),
2013-
updateRunning: Boolean(opts?.updateRunning),
20142013
};
20152014

2015+
if (this.configId) {
2016+
config.updateRunning = Boolean(opts?.updateRunning);
2017+
}
2018+
20162019
this.isSubmitting = true;
20172020

20182021
try {

0 commit comments

Comments
 (0)