aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PresBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-24 11:48:00 -0400
committerbobzel <zzzman@gmail.com>2020-08-24 11:48:00 -0400
commita6728f81c8192c910ed1f2b70091c39634aca05c (patch)
tree0d2951df140115047aec79ec90285117b3a29ef0 /src/client/views/nodes/PresBox.tsx
parent505ad0d2e2a37795f1877b2319a8ba3a1ce65d28 (diff)
fixed presentation trails being added to myPresentations. fixed properties pane to set title "in place".
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
-rw-r--r--src/client/views/nodes/PresBox.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx
index 1228a285e..9070bf2ae 100644
--- a/src/client/views/nodes/PresBox.tsx
+++ b/src/client/views/nodes/PresBox.tsx
@@ -107,6 +107,9 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema>
this.rootDoc._replacedChrome = "replaced";
this.layoutDoc.presStatus = "edit";
this.layoutDoc._gridGap = 5;
+ if (!DocListCast((Doc.UserDoc().myPresentations as Doc).data).includes(this.rootDoc)) {
+ Doc.AddDocToList(Doc.UserDoc().myPresentations as Doc, "data", this.rootDoc);
+ }
}
updateCurrentPresentation = () => {