Fix dropping features onto item sheets (#1394)

This commit is contained in:
Carlos Fernandez 2025-12-07 17:32:05 -08:00 committed by GitHub
parent ccdd413933
commit b307d65d18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}
}