@cocreate/render 1.37.0 → 1.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.37.1](https://github.com/CoCreate-app/CoCreate-render/compare/v1.37.0...v1.37.1) (2023-12-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * if no template.clone use template.template.clone ([ea678bf](https://github.com/CoCreate-app/CoCreate-render/commit/ea678bf3fa097349e431d7bf96f582a647d03a27))
7
+
1
8
  # [1.37.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.36.1...v1.37.0) (2023-12-18)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/render",
3
- "version": "1.37.0",
3
+ "version": "1.37.1",
4
4
  "description": "A simple render component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "render",
package/src/index.js CHANGED
@@ -244,6 +244,8 @@ async function renderTemplate(template, data, key, index, keyPath) {
244
244
 
245
245
  let isInsert = data.$filter && (data.$filter.create || data.$filter.update)
246
246
  if (!isInsert && !index || data.$filter.overwrite) {
247
+ if (!template.clones)
248
+ template = template.template
247
249
  for (const [key, element] of template.clones) {
248
250
  renderedNodes.delete(element)
249
251
  element.remove()