diff --git a/frontend/src/shell/SessionDocumentsPanel.test.tsx b/frontend/src/shell/SessionDocumentsPanel.test.tsx index 74d2e1eb..fca116ca 100644 --- a/frontend/src/shell/SessionDocumentsPanel.test.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.test.tsx @@ -43,3 +43,9 @@ test("shows Resume for resumable, hides it for finalized", async () => { rerender(); expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument(); }); + +test("hides Resume for an archived session", async () => { + wrap(); + await screen.findByText("Original question"); + expect(screen.queryByRole("button", { name: /resume/i })).not.toBeInTheDocument(); +}); diff --git a/frontend/src/shell/SessionDocumentsPanel.tsx b/frontend/src/shell/SessionDocumentsPanel.tsx index 0aec5395..3fcd9487 100644 --- a/frontend/src/shell/SessionDocumentsPanel.tsx +++ b/frontend/src/shell/SessionDocumentsPanel.tsx @@ -27,7 +27,7 @@ function DocBody({ doc }: { doc: SessionDocument }) { const linking = JSON.parse(doc.content); return ; } catch { - return
{doc.content}
; + return
{doc.content}
; } } if (doc.format === "decisions") {