Skip to content

Commit

Permalink
remove foreach using values prop
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Jul 23, 2024
1 parent f03aaff commit 08d8e13
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,7 @@ class IbexaCustomTagUI extends Plugin {

this.isNew = false;

Object.keys(values).forEach((name) => {
const attributeView = this.formView.attributeViews[name];

if (!attributeView) {
return;
}

newValues[name] = attributeView.fieldView.element.value;
});

Object.entries(this.formView.attributeViews).forEach(([name, attributeView]) => {
if (newValues[name] !== undefined) {
return;
}

newValues[name] = attributeView.fieldView.element.value;
});

Expand Down

0 comments on commit 08d8e13

Please sign in to comment.