PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Agent/hooks/useWhenFinishedToolProps.js +2 -12 3.1.2 → trunk View file →
@@ -54,19 +54,9 @@
54 54 }),
55 55 );
56 56 }, [whenFinishedToolProps, setWhenFinishedToolProps, getWorkflow]);
57 57
58 - const onLoad = useCallback(() => {
59 - if (!whenFinishedToolProps) return;
60 - const c = Array.from(
61 - document.querySelectorAll(
62 - '#extendify-agent-chat-scroll-area div:last-child',
63 - ),
64 - )?.at(-1);
65 - c?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
66 - }, [whenFinishedToolProps]);
67 -
68 58 return useMemo(() => {
69 59 if (!whenFinishedToolProps) return null;
70 - return { ...whenFinishedToolProps, onConfirm, onCancel, onRetry, onLoad };
71 - }, [whenFinishedToolProps, onConfirm, onCancel, onRetry, onLoad]);
60 + return { ...whenFinishedToolProps, onConfirm, onCancel, onRetry };
61 + }, [whenFinishedToolProps, onConfirm, onCancel, onRetry]);
72 62 };