mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 13:11:08 +01:00
Fixed tagify error on selection
This commit is contained in:
parent
448abb5f50
commit
ca319d7fac
1 changed files with 2 additions and 3 deletions
|
|
@ -444,9 +444,8 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
Object.keys(choice).forEach(checkboxNr => {
|
Object.keys(choice).forEach(checkboxNr => {
|
||||||
const checkbox = choice[checkboxNr];
|
const checkbox = choice[checkboxNr];
|
||||||
if (
|
if (
|
||||||
choiceKey === type && removed
|
choiceKey === type &&
|
||||||
? checkbox.data.includes(option)
|
(removed ? checkbox.data.includes(option) : checkbox.data.length < checkbox.amount)
|
||||||
: checkbox.data.length < checkbox.amount
|
|
||||||
) {
|
) {
|
||||||
acc = `levels.${this.levelup.currentLevel}.choices.${choiceKey}.${checkboxNr}.data`;
|
acc = `levels.${this.levelup.currentLevel}.choices.${choiceKey}.${checkboxNr}.data`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue