Skip to content

Commit

Permalink
Make overrided cells uneditable
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitBarnard committed Oct 31, 2024
1 parent fc455f0 commit 8d63bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front_end/src/Components/TableCell/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const TableCell = ({rowIndex, cellId, cellKey, sheetUpdating}) => {
}

const isCellUpdating = () => {
if (cell && !isEditable)
if (cell && !isEditable || isOverride())
return false

if (isUpdating)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d63bf4

Please sign in to comment.