From 589190849359bb0cbebcf3be690d6473b80a3e21 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 10 Aug 2025 02:26:28 +0200 Subject: [PATCH] Fixed so Weapon/Armor features are added again --- module/helpers/utils.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/helpers/utils.mjs b/module/helpers/utils.mjs index 6124cfbe..3dc1f7ed 100644 --- a/module/helpers/utils.mjs +++ b/module/helpers/utils.mjs @@ -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',