diff --git a/CHANGELOG.md b/CHANGELOG.md index c8a475d3..56b82f23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ * Imported skill modifiers have better formatted attributes key names ([#1663](https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1663)) * Updated Spanish localizations +`1.903` +* Fix: + * Force Power: Empty mod list doesn't reset basic force power anymore + `1.903` * Features: * Updated "item cards" to match the Mandar theme diff --git a/modules/helpers/item-helpers.js b/modules/helpers/item-helpers.js index da4dbb84..58142751 100644 --- a/modules/helpers/item-helpers.js +++ b/modules/helpers/item-helpers.js @@ -104,6 +104,11 @@ export default class ItemHelpers { ); delete updatedData.data; } + // Initialize updatedData.system if the key is present with no value + if (Object.keys(updatedData).includes('system') && typeof updatedData.system === "undefined") + { + updatedData.system = {}; + } return updatedData; } }