Fixed so Weapon/Armor features are added again

This commit is contained in:
WBHarry 2025-08-10 02:26:28 +02:00
parent 300719c116
commit 5891908493

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',