Skip to content

Commit

Permalink
save from selection
Browse files Browse the repository at this point in the history
  • Loading branch information
SuaYoo committed Oct 3, 2024
1 parent 566db92 commit 071c12e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/features/crawl-workflows/workflow-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 071c12e

Please sign in to comment.