Merge pull request #755 from Foundryborne/fix/Fixed-Weapon-Armor-Feature-Useage

[Fix] Fixed Weapon/Armor Features
This commit is contained in:
Chris Ryan 2025-08-10 17:44:15 +10:00 committed by GitHub
commit a26e6aface
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,13 @@ export const chunkify = (array, chunkSize, mappingFunc) => {
export const tagifyElement = (element, baseOptions, onChange, tagifyOptions = {}) => {
const { maxTags } = tagifyOptions;
const options = typeof baseOptions === 'object' ? Object.values(baseOptions) : baseOptions;
const options =
typeof baseOptions === 'object'
? Object.keys(baseOptions).map(optionKey => ({
...baseOptions[optionKey],
id: optionKey
}))
: baseOptions;
const tagifyElement = new Tagify(element, {
tagTextProp: 'name',