From 8d63bf4dba7b3ccd78525cfea08582acd0963a47 Mon Sep 17 00:00:00 2001 From: Caitlin Barnard Date: Thu, 31 Oct 2024 13:45:02 +0000 Subject: [PATCH] Make overrided cells uneditable --- front_end/src/Components/TableCell/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front_end/src/Components/TableCell/index.jsx b/front_end/src/Components/TableCell/index.jsx index 0f78b0a85..7cd16156b 100644 --- a/front_end/src/Components/TableCell/index.jsx +++ b/front_end/src/Components/TableCell/index.jsx @@ -220,7 +220,7 @@ const TableCell = ({rowIndex, cellId, cellKey, sheetUpdating}) => { } const isCellUpdating = () => { - if (cell && !isEditable) + if (cell && !isEditable || isOverride()) return false if (isUpdating) @@ -267,7 +267,7 @@ const TableCell = ({rowIndex, cellId, cellKey, sheetUpdating}) => { className={getClasses()} id={getId()} onDoubleClick={ () => { - if (isEditable) { + if (isEditable && !isOverride()) { dispatch( SET_EDITING_CELL({ "cellId": cellId