fix(core): override LinkedDocBlockComponent initial state (#8253)

Upstreams: https://github.com/toeverything/blocksuite/pull/8354

<div class='graphite__hidden'>
          <div>🎥 Video uploaded on Graphite:</div>
            <a href="https://app.graphite.dev/media/video/8ypiIKZXudF5a0tIgIzf/f8214c18-2fb7-4cbe-9d0d-5302f520b676.mov">
              <img src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/8ypiIKZXudF5a0tIgIzf/f8214c18-2fb7-4cbe-9d0d-5302f520b676.mov">
            </a>
          </div>
<video src="https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/8ypiIKZXudF5a0tIgIzf/f8214c18-2fb7-4cbe-9d0d-5302f520b676.mov">Screen Recording 2024-09-13 at 20.27.38.mov</video>
This commit is contained in:
fundon 2024-09-19 01:37:18 +00:00
parent f4a19921c4
commit bba9e79e59
No known key found for this signature in database
GPG Key ID: 398BFA91AC539CF7

View File

@ -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,
};
}
}