Skip to content

Commit

Permalink
fix: indexeddb sync loader added
Browse files Browse the repository at this point in the history
  • Loading branch information
Palanikannan1437 committed Dec 16, 2024
1 parent 2b06dfa commit 09f2be4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ const CollaborativeDocumentEditor = (props: ICollaborativeDocumentEditor) => {

if (!editor) return null;

// Wait until we know about IndexedDB status
if (hasIndexedDbEntry === null) return null;

if (hasServerConnectionFailed || (!hasIndexedDbEntry && !hasServerSynced) || !hasIndexedDbSynced) {
if (
hasServerConnectionFailed ||
(!hasIndexedDbEntry && !hasServerSynced) ||
!hasIndexedDbSynced ||
!hasIndexedDbEntry
) {
console.log("syncing indexedDB");
return <DocumentContentLoader />;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export const PageRenderer = (props: IPageRenderer) => {
[editor, cleanup]
);

console.log("rendered");
return (
<>
<div className="frame-renderer flex-grow w-full -mx-5" onMouseOver={handleLinkHover}>
Expand Down
1 change: 0 additions & 1 deletion web/core/components/pages/editor/editor-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ export const PageEditorBody: React.FC<Props> = observer((props) => {
menu: getAIMenu,
}}
/>
)
</div>
</div>
<div
Expand Down

0 comments on commit 09f2be4

Please sign in to comment.