Skip to content

Commit 8a8ede7

Browse files
Add finalResultRef to PlanPage for improved reference handling
1 parent 29c5ead commit 8a8ede7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/App/src/pages/PlanPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect} from 'react';
1+
import React, { useCallback, useEffect, useRef} from 'react';
22
import { useParams, useNavigate } from 'react-router-dom';
33
import { Spinner, Text } from '@fluentui/react-components';
44

@@ -87,6 +87,7 @@ const PlanPage: React.FC = () => {
8787
const dispatch = useAppDispatch();
8888
const { showToast, dismissToast } = useInlineToaster();
8989
const { messagesContainerRef, scrollToBottom } = useAutoScroll();
90+
const finalResultRef = useRef<HTMLDivElement>(null);
9091
const { loadPlanData, resetPlanVariables } = usePlanActions();
9192

9293
/* ── Redux Selectors (granular — Point 10) ──────────────── */
@@ -370,6 +371,7 @@ const PlanPage: React.FC = () => {
370371
processingApproval={processingApproval}
371372
handleApprovePlan={handleApprovePlan}
372373
handleRejectPlan={handleRejectPlan}
374+
finalResultRef={finalResultRef}
373375
/>
374376
</>
375377
)}

0 commit comments

Comments
 (0)