aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocComponent.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-24 20:13:43 -0400
committerbobzel <zzzman@gmail.com>2025-03-24 20:13:43 -0400
commit70898430dc45ec3422ab2e05fc46054ba56a1909 (patch)
treefdd949846e93f93f3342064f1302a3f427e20495 /src/client/views/DocComponent.tsx
parentc1a474fd2cf633fa204f1bb6dce2539f4b172d6c (diff)
fixed iconifying collections to show image icon. fixed shortcut for using cached template. fixed onClick prop type
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r--src/client/views/DocComponent.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx
index 8f254ddcd..3a868d1f9 100644
--- a/src/client/views/DocComponent.tsx
+++ b/src/client/views/DocComponent.tsx
@@ -192,7 +192,9 @@ export function ViewBoxAnnotatableComponent<P extends FieldViewProps>() {
* This is the unique data repository for a dcoument that stores the intrinsic document data
*/
@computed get dataDoc() {
- return this._renderDoc.isTemplateForField || this._renderDoc.isTemplateDoc ? (this._props.TemplateDataDocument ?? this._renderDoc[DocData]) : this._props.Document[DocData];
+ return this._renderDoc.isTemplateForField || this._renderDoc.isTemplateDoc ?
+ (this._props.TemplateDataDocument ?? this._renderDoc[DocData]) :
+ this._props.Document[DocData]; // prettier-ignore
}
/**