Skip to content

Commit

Permalink
fix: delete for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 16, 2023
1 parent 4143fbb commit 5507a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ Actions.init({

if (elements[i].renderValue) {
let selected = elements[i].querySelectorAll('.selected')
data[data.type] = []
for (let j = 0; j < selected.length; j++) {
data[data.type] = []
let attribute = selected[j].getAttribute(data.type)
if (attribute) {
attribute = attribute.split(',')
Expand Down

0 comments on commit 5507a86

Please sign in to comment.