Fixed tab after first creation

This commit is contained in:
WBHarry 2025-08-11 23:54:37 +02:00
parent b3dd981d28
commit 7516961057

View file

@ -194,11 +194,8 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
});
}
async _preFirstRender(_context, _options) {
this.tabGroups.setup = 'ancestry';
}
async _prepareContext(_options) {
this.tabGroups.setup = this.tabGroups.setup ?? 'ancestry';
const context = await super._prepareContext(_options);
context.tabs = this._getTabs(this.constructor.TABS);