diff options
| author | bobzel <zzzman@gmail.com> | 2025-01-17 11:17:15 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-01-17 11:17:15 -0500 |
| commit | 156a2040cc51397c3656615f9133279dac900c82 (patch) | |
| tree | 81fb2cf9c2c8c04cbe4b89a40d8e171103c5079c /src/client/views/nodes/DocumentView.tsx | |
| parent | fdc8741187489963353938072f05051b8986c400 (diff) | |
changed to generating 4 images for each firefly request.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
| -rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index e37658ca5..bc3f27124 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1110,10 +1110,10 @@ export class DocumentView extends DocComponent<DocumentViewProps>() { * @param doc Doc to snapshot * @returns promise of icon ImageField */ - public static GetDocImage(doc: Doc) { + public static GetDocImage(doc?: Doc) { return DocumentView.getDocumentView(doc) ?.ComponentView?.updateIcon?.() - .then(() => ImageCast(doc?.icon, ImageCast(doc[Doc.LayoutFieldKey(doc)]))); + .then(() => ImageCast(doc!.icon, ImageCast(doc![Doc.LayoutFieldKey(doc!)]))); } public get displayName() { return 'DocumentView(' + (this.Document?.title??"") + ')'; } // prettier-ignore |
