Skip to content

Commit

Permalink
Merge pull request #630 from avantifellows/remove-items-plio-list
Browse files Browse the repository at this point in the history
Remove itemdetails being created in plio list item
  • Loading branch information
dalmia authored Feb 18, 2022
2 parents dd6ca98 + c907758 commit 996aaf3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/Collections/ListItems/PlioListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,23 +102,10 @@ export default {
scrollY: window.scrollY, // the number of pixels scrolled vertically
toast: useToast(), // toast component
optionsOverflowMarginTop: -14, // margin to be set from the top when the options would overflow from the screen
itemDetails: [],
thumbnailClasses: "h-12 w-16 bp-500:h-14 bp-500:w-18 md:h-16 md:w-20",
};
},
async created() {
if (this.plioDetails != undefined && "items" in this.plioDetails) {
// create itemDetails and update items to remove details
for (let item of this.plioDetails.items) {
/**
* add every item's details to an itemDetails array
* and then, remove those details from the item object
*/
this.itemDetails.push(item.details);
delete item.details;
}
}
// add listener for resize
window.addEventListener("resize", this.handleResize);
Expand Down

0 comments on commit 996aaf3

Please sign in to comment.