From affd1bea497db5a7f53ed949adc0670211d25892 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Wed, 2 Jul 2025 08:53:42 +0100 Subject: [PATCH] Merge pull request #26586 from overleaf/td-file-view-error-reset Reset file view loading and error state when switching between files GitOrigin-RevId: 44be9bf71fe9541ed78db3421bf356997850e6ec --- .../js/features/ide-react/components/editor-and-pdf.tsx | 5 ++++- .../js/features/ide-redesign/components/editor-panel.tsx | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx b/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx index 6a9e4cd441..a7ae12515e 100644 --- a/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx +++ b/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx @@ -58,7 +58,10 @@ export const EditorAndPdf: FC = () => { > {selectedEntityCount === 0 && } {selectedEntityCount === 1 && openEntity?.type === 'fileRef' && ( - + )} {selectedEntityCount > 1 && ( diff --git a/services/web/frontend/js/features/ide-redesign/components/editor-panel.tsx b/services/web/frontend/js/features/ide-redesign/components/editor-panel.tsx index 18fcad1395..d8204da5da 100644 --- a/services/web/frontend/js/features/ide-redesign/components/editor-panel.tsx +++ b/services/web/frontend/js/features/ide-redesign/components/editor-panel.tsx @@ -12,7 +12,10 @@ export default function EditorPanel() {
{selectedEntityCount === 0 && } {selectedEntityCount === 1 && openEntity?.type === 'fileRef' && ( - + )} {selectedEntityCount > 1 && (