Skip to content

Commit

Permalink
fix(core): override LinkedDocBlockComponent initial state (#8253)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Sep 19, 2024
1 parent f4a1992 commit bba9e79
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,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() {
return {
loading: false,
isBannerEmpty: true,
};
}
}

Expand Down

0 comments on commit bba9e79

Please sign in to comment.