Skip to content

Commit

Permalink
fix: clear errors on successful submit
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-harris authored and cdxker committed Oct 3, 2024
1 parent 730979c commit 9a108c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const RealCrawlingSettings = (props: RealCrawlingSettingsProps) => {
const submit = () => {
const validateResult = validate(options);
if (validateResult.valid) {
setErrors({});
props.onSave(options);
} else {
setErrors(validateResult.errors);
Expand Down

0 comments on commit 9a108c2

Please sign in to comment.