Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Algor0113 committed Nov 20, 2024
1 parent 38ade6c commit 65383c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/sheets/torgeternityActorSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export default class TorgeternityActorSheet extends ActorSheet {
}
const data = TextEditor.getDragEventData(event);
const dropedObject = await fromUuid(data.uuid);
if (dropedObject instanceof TorgeternityItem && dropedObject.system?.category === 'race') {
if (dropedObject instanceof TorgeternityItem && dropedObject.type === 'race') {
const raceItem = this.actor.items.find((i) => i.type === 'race');
if (raceItem) {
await this.actor.deleteEmbeddedDocuments('Item', [
Expand Down

0 comments on commit 65383c4

Please sign in to comment.