diff --git a/frontend/src/features/crawl-workflows/workflow-editor.ts b/frontend/src/features/crawl-workflows/workflow-editor.ts index c661db817..7545cd63e 100644 --- a/frontend/src/features/crawl-workflows/workflow-editor.ts +++ b/frontend/src/features/crawl-workflows/workflow-editor.ts @@ -67,6 +67,7 @@ import { import { maxLengthValidator } from "@/utils/form"; import { getLocale } from "@/utils/localization"; import { isArchivingDisabled } from "@/utils/orgs"; +import { AppStateService } from "@/utils/state"; import { regexEscape } from "@/utils/string"; import { tw } from "@/utils/tailwind"; import { @@ -1712,6 +1713,13 @@ https://archiveweb.page/images/${"logo.svg"}`} } } + if (!this.configId) { + // Remember scope type for new workflows + AppStateService.partialUpdateUserPreferences({ + newWorkflowScopeType: value, + }); + } + this.updateFormState(formState); }