Skip to content

Commit

Permalink
Merge pull request #192 from juanferrer/master
Browse files Browse the repository at this point in the history
4.1.2
  • Loading branch information
ClipplerBlood authored Jun 25, 2024
2 parents 91aba3e + d7ac469 commit 2435165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/item/sheets/path-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ export default class DLPathSheet extends DLBaseItemSheet {
updateData.description = formData['system.description'] || this.object.system.description
updateData.type = formData['system.type']

if (!updateData.type) delete updateData.type

if (completeFormData.length > 0) {
if (this.object.system.editPath) {
updateData.levels = this._getEditLevelsUpdateData(completeFormData)
Expand Down Expand Up @@ -217,7 +219,6 @@ export default class DLPathSheet extends DLBaseItemSheet {
}
}


return await this.object.update({name: _name, img: formData.img, system: updateData})
}

Expand Down

0 comments on commit 2435165

Please sign in to comment.