Skip to content

Commit

Permalink
FIX: cell type compatibility for old projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed May 20, 2024
1 parent c2384b8 commit 9339fad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions next_app/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,16 +403,14 @@ const EditorArea = ({
const cellType = file.content.cells[cellId].type
return <>
<CellUtilButtons key={index} position={index} addNewCell={addNewCell} />
{cellType == "CODE" &&
<CodeCell
{(cellType == "MARKDOWN" || cellType == "LATEX") ?
<VisualCell
key={index}
file={file}
cellId={cellId}
manager={manager}
project={project}
/>}
{(cellType == "MARKDOWN" || cellType == "LATEX") &&
<VisualCell
/> : <CodeCell
key={index}
file={file}
cellId={cellId}
Expand Down

0 comments on commit 9339fad

Please sign in to comment.