aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails/PresElementBox.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2024-04-16 17:44:30 -0400
committersrichman333 <sarah_n_richman@brown.edu>2024-04-16 17:44:30 -0400
commiteb55f45eb18e07a006225713deedaf0083a74bf2 (patch)
treec15135ba2e2b9a7add6938c3567b2acb38cc4f14 /src/client/views/nodes/trails/PresElementBox.tsx
parent17cca384290a98b28c4f4a4d6bc4cf5edaef4573 (diff)
parent8925cc306bd7ee9a044a3fb2bc19dbb09c495515 (diff)
Merge branch 'master' into sarah-ai-visualization
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
-rw-r--r--src/client/views/nodes/trails/PresElementBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx
index 5b2aa1cde..28139eb14 100644
--- a/src/client/views/nodes/trails/PresElementBox.tsx
+++ b/src/client/views/nodes/trails/PresElementBox.tsx
@@ -61,7 +61,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {
// Since this node is being rendered with a template, this method retrieves
// the actual slide being rendered from the auto-generated rendering template
@computed get slideDoc() {
- return this._props.TemplateDataDocument ?? this.Document;
+ return DocCast(this.Document.rootDocument, this.Document);
}
// this is the document in the workspaces that is targeted by the slide