diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 02:26:36 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 02:26:51 +0100 |
commit | 3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3 (patch) | |
tree | a5559af37dfacc447f35289ebda31d1b36973e1b /static/components/edit-rrule.ts | |
parent | Merge draggable into popup-element. (diff) | |
download | calp-3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3.tar.gz calp-3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3.tar.xz |
Made VEventComponent template optional.
Diffstat (limited to 'static/components/edit-rrule.ts')
-rw-r--r-- | static/components/edit-rrule.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/components/edit-rrule.ts b/static/components/edit-rrule.ts index cac19e80..a361bdee 100644 --- a/static/components/edit-rrule.ts +++ b/static/components/edit-rrule.ts @@ -14,6 +14,10 @@ class EditRRule extends ComponentVEvent { constructor(uid?: string) { super(uid); + if (!this.template) { + throw 'vevent-edit-rrule template required'; + } + let frag = this.template.content.cloneNode(true) as DocumentFragment let body = frag.firstElementChild! this.replaceChildren(body); |