diff options
Diffstat (limited to '')
-rw-r--r-- | static/components/vevent-edit.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/components/vevent-edit.ts b/static/components/vevent-edit.ts index 5c482882..ee368296 100644 --- a/static/components/vevent-edit.ts +++ b/static/components/vevent-edit.ts @@ -17,6 +17,10 @@ class ComponentEdit extends ComponentVEvent { constructor(uid?: string) { super(uid); + if (!this.template) { + throw 'vevent-edit template required'; + } + let frag = this.template.content.cloneNode(true) as DocumentFragment let body = frag.firstElementChild! this.replaceChildren(body); |