mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-13 20:16:00 +08:00
Fix waitFor check to handle undefined values
Co-Authored-By: hello@sideguide.dev <hello@sideguide.dev>
This commit is contained in:
parent
8bc2f16712
commit
4026866c15
@ -282,7 +282,7 @@ const extractTransform = (obj) => {
|
|||||||
obj = { ...obj, timeout: 60000 };
|
obj = { ...obj, timeout: 60000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj.formats?.includes("changeTracking") && obj.waitFor < 5000) {
|
if (obj.formats?.includes("changeTracking") && (obj.waitFor === undefined || obj.waitFor < 5000)) {
|
||||||
obj = { ...obj, waitFor: 5000 };
|
obj = { ...obj, waitFor: 5000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user