Skip to content

Commit

Permalink
[foundryvtt#2548] Fix minor linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Nov 6, 2023
1 parent b0cc8a2 commit b824f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/applications/advancement/scale-value-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class ScaleValueConfig extends AdvancementConfig {
_prepareLevelData() {
let lastValue = null;
let levels = Array.fromRange(CONFIG.DND5E.maxLevel + 1);
if ( ["class", "subclass"].includes(this.advancement.parent.type ) ) levels = levels.slice(1);
if ( ["class", "subclass"].includes(this.advancement.parent.type) ) levels = levels.slice(1);
return levels.reduce((obj, level) => {
obj[level] = { placeholder: this._formatPlaceholder(lastValue), value: null };
const value = this.advancement.configuration.scale[level];
Expand Down

0 comments on commit b824f25

Please sign in to comment.