mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
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.
This commit is contained in:
@@ -1688,17 +1688,12 @@ const PdfTextEditor = ({ onComplete, onError }: BaseToolProps) => {
|
|||||||
icon: <DescriptionIcon fontSize="small" />,
|
icon: <DescriptionIcon fontSize="small" />,
|
||||||
component: PdfTextEditorView,
|
component: PdfTextEditorView,
|
||||||
});
|
});
|
||||||
|
setLeftPanelView('toolContent');
|
||||||
setCustomWorkbenchViewData(WORKBENCH_VIEW_ID, latestViewDataRef.current);
|
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,
|
registerCustomWorkbenchView,
|
||||||
setCustomWorkbenchViewData,
|
setCustomWorkbenchViewData,
|
||||||
|
setLeftPanelView,
|
||||||
viewLabel,
|
viewLabel,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user