From 4aa016090c2f5c60d1c4013aca596ff40a77ead2 Mon Sep 17 00:00:00 2001 From: Joxit Date: Fri, 7 Dec 2018 19:46:08 +0100 Subject: [PATCH] Add more const --- src/tags/tag-history.tag | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tags/tag-history.tag b/src/tags/tag-history.tag index 0947b80..2082751 100644 --- a/src/tags/tag-history.tag +++ b/src/tags/tag-history.tag @@ -68,14 +68,12 @@ along with this program. If not, see . for (const index in elements) { const parsedNestedElements = JSON.parse(elements[index].v1Compatibility || {}); - let guiElements = []; - let guiElement = {}; + const guiElements = []; for (const attribute in parsedNestedElements) { if (parsedNestedElements.hasOwnProperty(attribute)) { const value = parsedNestedElements[attribute]; - - guiElement = { + const guiElement = { "key": attribute, "value": modifySpecificAttributeTypes(attribute, value) };