Skip to content

Commit

Permalink
fix(core): linked and synced doc does not need to load in shared mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Sep 14, 2024
1 parent ed63602 commit 1b97dc7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,12 @@ export function patchEdgelessClipboard() {
}

@customElement('affine-linked-doc-ref-block')
// @ts-expect-error ignore private warning for overriding _load
export class LinkedDocBlockComponent extends EmbedLinkedDocBlockComponent {
override async _load() {
this.isBannerEmpty = true;
override getInitialState() {

Check failure on line 501 in packages/frontend/core/src/components/blocksuite/block-suite-editor/specs/custom/spec-patchers.tsx

View workflow job for this annotation

GitHub Actions / Lint

This member cannot have an 'override' modifier because it is not declared in the base class 'EmbedLinkedDocBlockComponent'.
return {
loading: false,
isBannerEmpty: true,
};
}
}

Expand Down

0 comments on commit 1b97dc7

Please sign in to comment.