|
@@ -91,7 +91,10 @@ function looper(scope) {
|
|
|
currentLoopElements = currentLoopElements[0].childNodes;
|
|
|
for (const currentElement of currentLoopElements) {
|
|
|
if (currentElement.nodeName !== "#text" && currentElement.getAttribute('data-index')) {
|
|
|
- currentElement.innerHTML = scope[propName][currentElement.getAttribute('data-index')][currentElement.getAttribute('data-val')];
|
|
|
+ const val = scope[propName][currentElement.getAttribute('data-index')][currentElement.getAttribute('data-val')];
|
|
|
+ if (val) {
|
|
|
+ currentElement.innerHTML = scope[propName][currentElement.getAttribute('data-index')][currentElement.getAttribute('data-val')];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|