From cce1fac14261cc9f6d5f405ac369e4020065f789 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 7 Oct 2020 21:25:08 +0200 Subject: [PATCH] #67 Fixed copy paste bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit But still doesn´t work correct in all cases I guess --- src/javascript/enhancements/lists.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/javascript/enhancements/lists.js b/src/javascript/enhancements/lists.js index 330bc1d..e181770 100644 --- a/src/javascript/enhancements/lists.js +++ b/src/javascript/enhancements/lists.js @@ -19,8 +19,10 @@ function addListHorizontalSeparators(node) { } // are we target tag? - if (node.tagName === targetTagName && typeof element.nextSibling !== "undefined") { - updateFunc(node); + if (node.tagName === targetTagName) { + if (typeof node.nextSibling !== "undefined") { + updateFunc(node); + } } else { // find items -> all let requestItems = node.querySelectorAll('md-list-item:not(:last-child)');