Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Move empty setter to outside statement
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Jul 9, 2019
1 parent 72a62c1 commit 78c4ddd
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
return group.handle == attribute.group.data.handle;
});

if (!data.attribute_data[attribute.handle]) {
this.$set(data.attribute_data, attribute.handle, {
webstore: {
en: ""
}
});
}

if (!existing) {
let group = attribute.group.data;
this.$set(group, 'attributes', {
Expand All @@ -82,14 +90,6 @@
if (!existingAttribute) {
existing.attributes.data.push(attribute);
}

if (!data.attribute_data[attribute.handle]) {
this.$set(data.attribute_data, attribute.handle, {
webstore: {
en: ""
}
});
}
}
});

Expand Down

0 comments on commit 78c4ddd

Please sign in to comment.