Skip to content

Commit 3ac208f

Browse files
author
Frank Pagan
committed
fix: check if undefined
1 parent 09ba9da commit 3ac208f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const CoCreateApi = {
147147
if (!elements || elements.length == 0)
148148
elements = [element]
149149
for (let el of elements) {
150-
if (el.closest('[template]')) continue
150+
if (!el || el.closest('[template]')) continue
151151
let attribute = el.getAttribute(name)
152152
if (attribute)
153153
data[attribute] = el.getValue()

0 commit comments

Comments
 (0)