Skip to content

Commit a057b96

Browse files
committed
Small fix on template stamping code
1 parent 3d1044f commit a057b96

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exmg-datatable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
let templ = this.querySelector('template');
4343

4444
if(!templ) {
45-
console.error('Error: exmg-datatable template not found!');
45+
return;
4646
}
4747
this.templatize(templ);
4848
this.shadowRoot.appendChild(this.stamp(null).root);

exmg-thead.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120

121121
if(!templ) {
122122
console.error('Error: exmg-thead template not found!');
123+
return;
123124
}
124125
this.templatize(templ);
125126
this.shadowRoot.appendChild(this.stamp(null).root);

0 commit comments

Comments
 (0)