Skip to content

Commit 9ea47c9

Browse files
committed
fix unable to open career selector if no current career
close #2731
1 parent 42d8431 commit 9ea47c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/apps/career-selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class CareerSelector extends HandlebarsApplicationMixin(Applicat
6060
{
6161
return
6262
}
63-
const currentCareerGroup = this.currentCareer.system.careergroup.value;
63+
const currentCareerGroup = this.currentCareer?.system.careergroup.value;
6464
this.careers = await warhammer.utility.findAllItems("career", game.i18n.localize("CAREER.Loading"), true, ["system.careergroup.value", "system.level.value", "system.class.value"])
6565
this.careers = this.careers.sort((a, b) => a.system.careergroup.value > b.system.careergroup.value ? 1 : -1)
6666
const currentCareers = this.careers.filter((a) => a.system.careergroup.value === currentCareerGroup)

0 commit comments

Comments
 (0)