Skip to content

Commit

Permalink
quick fix to support when user doesnt include texture traits or color…
Browse files Browse the repository at this point in the history
…s in manifest
  • Loading branch information
memelotsqui committed Oct 19, 2023
1 parent cada918 commit 5a458f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/option-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export function getTraitOptions(trait, template) {
const traitOptions = []
const thumbnailBaseDir = (template.assetsLocation || "") + template.thumbnailsDirectory
trait.collection.map((item, index) => {
const textureTraits = template.textureCollections.find(
const textureTraits = template?.textureCollections?.find(
(texture) => texture.trait === item.textureCollection,
)
const colorTraits = template.colorCollections.find(
const colorTraits = template?.colorCollections?.find(
(color) => color.trait === item.colorCollection,
)

Expand Down

0 comments on commit 5a458f2

Please sign in to comment.