Fix dropping features onto item sheets

This commit is contained in:
Carlos Fernandez 2025-12-07 20:27:12 -05:00
parent f680ade1da
commit 62ba5002f9

View file

@ -325,7 +325,8 @@ export default function DHApplicationMixin(Base) {
if (data.type === 'ActiveEffect' && data.fromInternal !== this.document.uuid) {
this.document.createEmbeddedDocuments('ActiveEffect', [data.data]);
} else {
return super._onDrop(event);
// Fallback to super, but note that item sheets do not have this function
return super._onDrop?.(event);
}
}