Skip to content

Commit 56263bb

Browse files
authored
Merge pull request #171 from League-of-Fabulous-Developers/dev
hotfix: account for subtype not existing
2 parents 83ad389 + 4378f3e commit 56263bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/sheets/actor-standard-sheet.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ export class FUStandardActorSheet extends ActorSheet {
470470

471471
// Proceed if the item is being dragged from the compendium/sidebar or other actors
472472
const itemData = await this._getItemDataFromDropData(data);
473-
const subtype = itemData.system.featureType || itemData.system.subtype.value;
473+
const subtype = itemData.system.featureType || itemData.system.subtype?.value;
474474

475475
// Determine the configuration based on item type
476476
const config = this._findItemConfig(itemData.type, subtype);

0 commit comments

Comments
 (0)