Skip to content

Commit

Permalink
Merge branch 'hotfix/2.20.3' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakeyzer committed Nov 25, 2023
2 parents 312251b + cfedef8 commit b88ce9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/userContent/ImportUserContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export default {
const key = entry.harmless_key ?? `new_key-${++i}`;
if (entry.challenge_rating !== undefined) {
// Entry is NPC
if (Object.values(entry.custom_spells).length > 0) {
if (entry.custom_spells && Object.values(entry.custom_spells).length > 0) {
new_data.spells = { ...new_data.spells, ...entry.custom_spells };
}
delete entry.custom_spells;
Expand Down

0 comments on commit b88ce9b

Please sign in to comment.