fix stop waiting bug (#3197)
This commit is contained in:
@@ -576,13 +576,7 @@ function FlowRenderer({
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
<BlockActionContext.Provider
|
<BlockActionContext.Provider
|
||||||
value={{
|
value={{
|
||||||
/**
|
deleteNodeCallback: deleteNode,
|
||||||
* NOTE: defer deletion to next tick to allow React Flow's internal
|
|
||||||
* event handlers to complete; removes a console warning from the
|
|
||||||
* React Flow library
|
|
||||||
*/
|
|
||||||
deleteNodeCallback: (id: string) =>
|
|
||||||
setTimeout(() => deleteNode(id), 0),
|
|
||||||
toggleScriptForNodeCallback: toggleScript,
|
toggleScriptForNodeCallback: toggleScript,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ function NodeHeader({
|
|||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{disabled ? null : (
|
{disabled || debugStore.isDebugMode ? null : (
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
className={cn("rounded p-1 hover:bg-muted", {
|
className={cn("rounded p-1 hover:bg-muted", {
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ async def scrape_website(
|
|||||||
max_screenshot_number: int = settings.MAX_NUM_SCREENSHOTS,
|
max_screenshot_number: int = settings.MAX_NUM_SCREENSHOTS,
|
||||||
scroll: bool = True,
|
scroll: bool = True,
|
||||||
support_empty_page: bool = False,
|
support_empty_page: bool = False,
|
||||||
wait_seconds: float = 3,
|
wait_seconds: float = 0,
|
||||||
) -> ScrapedPage:
|
) -> ScrapedPage:
|
||||||
"""
|
"""
|
||||||
************************************************************************************************
|
************************************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user