diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-02 01:03:08 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-02 01:03:08 -0400 |
commit | a535bd75c3a4d7db323493c6285edef1ba77c56f (patch) | |
tree | 58d47e45dcc8afc8246fa25aab8f6c69892a864b /src/client/views/nodes/DocumentView.tsx | |
parent | 4d31e1038ece3fdf9565f226486aeff0e36bb48d (diff) | |
parent | 9e43f11b45f7873f88d8ac5a861a83bca73fbc05 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 5 |
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 |