Skip to content

Commit

Permalink
fix remove index data action
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 15, 2020
1 parent 424d988 commit b261117
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -154,12 +154,14 @@ public void execute(TagContext context) {
if (index != 0) {
list.remove(index - 1);
}
requiresInputValue();
String findValue = inputValue.toString();
for (int i = 0; i < list.size(); i++) {
if (CoreUtilities.equalsIgnoreCase(list.get(i), findValue)) {
list.remove(i);
break;
else {
requiresInputValue();
String findValue = inputValue.toString();
for (int i = 0; i < list.size(); i++) {
if (CoreUtilities.equalsIgnoreCase(list.get(i), findValue)) {
list.remove(i);
break;
}
}
}
provider.setValueAt(key, list);
Expand Down

0 comments on commit b261117

Please sign in to comment.