Add more const

This commit is contained in:
Joxit
2018-12-07 19:46:08 +01:00
parent 7163150cf5
commit 4aa016090c

View File

@@ -68,14 +68,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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)
};