Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix: use spread operator instead of Array.from for Set conversion (#2746)

Abimael Martellc88b51893cde
diff --git a/apps/api/src/scraper/scrapeURL/engines/fire-engine/brandingScript.ts b/apps/api/src/scraper/scrapeURL/engines/fire-engine/brandingScript.ts
index b79d0395a..7ca85b405 100644
--- a/apps/api/src/scraper/scrapeURL/engines/fire-engine/brandingScript.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/fire-engine/brandingScript.ts
@@ -296,7 +296,9 @@ export const getBrandingScript = () => String.raw`
pushQ('input, select, textarea, [class*="form-control"]', 25);
pushQ("h1, h2, h3, p, a", 50);
- return Array.from(picksSet).filter(Boolean);
+ const result = [...picksSet];
+
+ return result.filter(Boolean);
};
const getStyleSnapshot = el => {