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, ]);