mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 14:42:03 +03:00
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:
parent
f4a19921c4
commit
bba9e79e59
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user