diff --git a/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx b/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx index 730e7f885f..b0339ddb35 100644 --- a/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx +++ b/frontends/dashboard/src/pages/dataset/CrawlingSettings.tsx @@ -32,7 +32,7 @@ const defaultCrawlOptions: CrawlOptions = { const normalizeOpenAPIOptions = ( options: CrawlOpenAPIOptions | null | undefined, ) => { - if (options) { + if (options && options.type == "openapi") { if (options.openapi_schema_url === "") { return null; } @@ -40,8 +40,9 @@ const normalizeOpenAPIOptions = ( return null; } return options; + } else { + return options } - return null; }; export const CrawlingSettings = () => {