aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-07-01 22:32:44 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-07-01 22:32:44 -0400
commit16822d88f981e7a86729d942a92b6ad8590680e4 (patch)
treed0fae7f375d67a6c86cd7aafc2b8078d1ed79797 /src/client/views/nodes/DocumentView.tsx
parent0b92bae55efb5c616e74d3f4b5a981865365b53e (diff)
fixed title template view issue
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 687c7f73d..3673cb0e2 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -473,6 +473,11 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
}
this.templates = this.templates;
}
+ @action
+ clearTemplates = () => {
+ this.templates.length = 0;
+ this.templates = this.templates;
+ }
@undoBatch
@action