Skip to content

Commit

Permalink
fix deprecated itemType usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pix666 committed Dec 12, 2023
1 parent fa2aff0 commit 796e6b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [0.18.2](https://github.com/dldevinc/paper-streamfield/tree/v0.18.2) - 2023-12-12

### Bug Fixes

- Fixed an issue with using deprecated `itemType` property.

## [0.18.1](https://github.com/dldevinc/paper-streamfield/tree/v0.18.1) - 2023-12-12

### Bug Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,7 @@ class Collection extends EventEmitter {
const dataElement = this.root.querySelector(this.config.dataJSON);
const data = JSON.parse(dataElement.textContent);
for (let itemData of data) {
const itemType = itemData.itemType;

const itemType = itemData.type;
const itemHTML = this.createItem(itemType, itemData);

this.itemContainer.insertAdjacentHTML("beforeend", itemHTML);
Expand Down

0 comments on commit 796e6b4

Please sign in to comment.