Fixed an error when targeting an ability score with a proficiency

This commit is contained in:
Stefan Zermatten
2021-04-15 12:00:11 +02:00
parent 2150bd6da4
commit d4d002cf31

View File

@@ -190,7 +190,9 @@ export default class ComputationMemo {
prop = this.registerProperty(prop);
let targets = this.getProficiencyTargets(prop);
targets.forEach(target => {
target.computationDetails.proficiencies.push(prop);
if(target.computationDetails.proficiencies){
target.computationDetails.proficiencies.push(prop);
}
});
}
getProficiencyTargets(prop){
@@ -267,6 +269,7 @@ const propDetailsByType = {
computed: false,
busyComputing: false,
effects: [],
proficiencies: [],
toggleAncestors: [],
idsOfSameName: [],
};