Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Fix PDF editor (#5393)

James Bruntonef7a3fa933b1
diff --git a/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx b/frontend/src/core/tools/pdfTextEditor/PdfTextEditor.tsx
index 25309c0cfd..fa6156d815 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: <DescriptionIcon fontSize="small" />,
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,
]);