Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Aug 7, 2024
1 parent dc14f79 commit 78d2ecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Hooks.on('preCreateItem', (document, data) => {
if (!data.img) {
const itemsList = WOD5E.ItemTypes.getList()
const itemImg = itemsList[data.type]?.img || 'systems/vtm5e/assets/icons/items/item-default.svg'

// Set the img value to the icon we get back
alterations['img'] = itemImg
alterations.img = itemImg
}

// Update the source document
document.updateSource(alterations)
})
})

0 comments on commit 78d2ecc

Please sign in to comment.