From ef7a3fa933b18865836c1c6eff32d24bd5f54e2a Mon Sep 17 00:00:00 2001 From: James Brunton Date: Thu, 8 Jan 2026 09:27:55 +0000 Subject: [PATCH] Fix PDF editor (#5393) # Description of Changes PDF editor has been impossible to access since #5169. This fixes the bug introduced in that which made it impossible to access. The main issue was the refactor removed the `setLeftPanelView` call. --- frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx b/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx index 25309c0cf..fa6156d81 100644 --- a/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx +++ b/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx @@ -1688,17 +1688,12 @@ const PdfTextEditor = ({ onComplete, onError }: BaseToolProps) => { icon: , component: PdfTextEditorView, }); + setLeftPanelView('toolContent'); setCustomWorkbenchViewData(WORKBENCH_VIEW_ID, latestViewDataRef.current); - - return () => { - // Clear backend cache if we were using lazy loading - clearCachedJob(cachedJobIdRef.current); - clearCustomWorkbenchViewData(WORKBENCH_VIEW_ID); - unregisterCustomWorkbenchView(WORKBENCH_VIEW_ID); - }; }, [ registerCustomWorkbenchView, setCustomWorkbenchViewData, + setLeftPanelView, viewLabel, ]);