[Fix] Action Source Handling (#1468)

* Fixed so that action context.source can be assigned to

* .

* .
This commit is contained in:
WBHarry 2025-12-24 03:05:27 +01:00 committed by GitHub
parent 2104549617
commit c63ba3b41d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 9 deletions

View file

@ -98,7 +98,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
async _prepareContext(_options) {
const context = await super._prepareContext(_options, 'action');
context.source = this.action._source;
context.source = this.action.toObject(true);
context.openSection = this.openSection;
context.tabs = this._getTabs(this.constructor.TABS);
context.config = CONFIG.DH;