From 9a108c25be028bf64b72161feb931b0cb31dae67 Mon Sep 17 00:00:00 2001 From: Drew Harris Date: Wed, 2 Oct 2024 22:51:43 -0500 Subject: [PATCH] fix: clear errors on successful submit --- frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx b/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx index a5fe3fe4b..953fe60ba 100644 --- a/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx +++ b/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx @@ -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);