From b45d8465d1e0c5c79c08111569f1203cf1646f07 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:16:23 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- frontend/src/components/editor/cell/code/cell-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/editor/cell/code/cell-editor.tsx b/frontend/src/components/editor/cell/code/cell-editor.tsx index 1bc6c321ee0..e18b5ea4f7b 100644 --- a/frontend/src/components/editor/cell/code/cell-editor.tsx +++ b/frontend/src/components/editor/cell/code/cell-editor.tsx @@ -157,7 +157,7 @@ const CellEditorInternal = ({ const toggleHideCode = useEvent(() => { // Use cellConfig.hide_code instead of hidden, since it may be temporarily shown const nextHidden = !cellConfig.hide_code; - + // For markdown cells, ensure the cell is run before hiding if (nextHidden && languageAdapter === "markdown") { runCell();