Fix waitFor check to handle undefined values
Co-Authored-By: hello@sideguide.dev <hello@sideguide.dev>
This commit is contained in:
@@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user