Skip to content

Commit

Permalink
fix: emergency hotfix for tag and new achievement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieDover committed Mar 17, 2024
1 parent dc68f2f commit c5f5806
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/module/app/add-achievement-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export class AddAchievementForm extends FormApplication {
}

getData(options) {
const tagarr = JSON.parse(JSON.stringify(this.overrides.achievement.tags));
let tagarr = this.overrides.achievement?.tags ? JSON.parse(JSON.stringify(this.overrides.achievement.tags)) : [];
if (typeof tagarr === "string") {
tagarr = tagarr.split(",");
}
this.workingTags = tagarr?.join(", ") ?? "";
return mergeObject(super.getData(options), {
isDM: game.user.isGM,
Expand Down

0 comments on commit c5f5806

Please sign in to comment.