Skip to content

Commit

Permalink
fix(item create): fixed the creation filter by ability category on ac…
Browse files Browse the repository at this point in the history
…tor sheet
  • Loading branch information
SouOWendel committed May 22, 2024
1 parent 2bea2ce commit ee2f834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/sheets/actor-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ export class OrdemActorSheet extends ActorSheet {
const itemData = {
name: name,
type: type,
data: data,
system: data,
};
// Remove the type from the dataset since it's in the itemData.type prop.
delete itemData.data['type'];
delete itemData.system['type'];

// Finally, create the item!
return await Item.create(itemData, { parent: this.actor });
Expand Down

0 comments on commit ee2f834

Please sign in to comment.