Skip to content

Commit

Permalink
feat: test initial load (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
baiirun authored Jan 10, 2025
1 parent 77070a9 commit ff988f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/web/partials/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const Editor = React.memo(function Editor({
editorProps: {
transformPastedHTML: html => removeIdAttributes(html),
},
immediatelyRender: false,
});

useInterceptEditorLinks(spaceId);
Expand Down
11 changes: 7 additions & 4 deletions apps/web/partials/editor/server-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ type ServerContentProps = {
};

export const ServerContent = ({ content }: ServerContentProps) => {
if (!content) return null;
if (!content) {
console.error('Content is undefined');
return null;
}

return (
<div className="tiptap ProseMirror !pb-[2rem]">
Expand All @@ -27,9 +30,9 @@ type BlockProps = {
};

const Block = ({ block }: BlockProps) => {
if (!block.content) {
return null;
}
// if (!block.content) {
// return null;
// }

switch (block.type) {
case 'paragraph': {
Expand Down

0 comments on commit ff988f0

Please sign in to comment.