Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

inverted flag for pdfDownloadEnabled (#7936)

Shahmir Varqha8e3249b93bab
diff --git a/frontend/src/components/editor/actions/useNotebookActions.tsx b/frontend/src/components/editor/actions/useNotebookActions.tsx
index 7d430d9edb..89f8c089e1 100644
--- a/frontend/src/components/editor/actions/useNotebookActions.tsx
+++ b/frontend/src/components/editor/actions/useNotebookActions.tsx
@@ -138,7 +138,7 @@ export function useNotebookActions() {
// With server side pdf export, it doesn't matter what mode we are in,
// Default export uses browser print, which is better in present mode
const pdfDownloadEnabled =
- isServerSidePdfExportEnabled || viewState.mode !== "present";
+ isServerSidePdfExportEnabled || viewState.mode === "present";
const renderCheckboxElement = (checked: boolean) => (
<div className="w-8 flex justify-end">