Skip to content

Commit

Permalink
fix: check for existence of skill
Browse files Browse the repository at this point in the history
marvin9257 authored and xdy committed Oct 16, 2021
1 parent 20dd894 commit 30fd99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/sheets/AbstractTwodsixActorSheet.ts
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ export abstract class AbstractTwodsixActorSheet extends ActorSheet {

//Link an actor skill with name defined by item.associatedSkillName
if (itemData.data.associatedSkillName !== "") {
itemData.data.skill = actor.items.getName(itemData.data.associatedSkillName).data._id;
itemData.data.skill = actor.items.getName(itemData.data.associatedSkillName)?.data._id;
}

// Create the owned item (TODO Add to type and remove the two lines below...)

0 comments on commit 30fd99f

Please sign in to comment.