Commit 985cf310 authored by Romain DELEAU's avatar Romain DELEAU

fix FirstSentenceId was not properly reset when the sentence was deleted / fix...

fix FirstSentenceId was not properly reset when the sentence was deleted / fix exporting SkillResults
parent 1b3cf6c9
......@@ -985,7 +985,7 @@ export class ExportUnity {
this.role.rewards.forEach(reward => {
if (reward instanceof SkillReward) {
let skill: UnitySkill = this.exportedRole.Item.find(skl => skl.name == reward.skill.name) as UnitySkill;
let skill: UnitySkill = this.exportedRole.Skill.find(skl => skl.name == reward.skill.name) as UnitySkill;
if (!results.some(element => element.skillID == skill.ID)) {
let resultID: number = this.resultID++;
let result: UnityEarnSkillResult = {
......
......@@ -98,6 +98,9 @@ export class DiscussionDialogComponent implements OnInit {
}
});
}
if (this.discussion.firstSentenceID == removedSentenceId) {
this.discussion.firstSentenceID = -1;
}
});
}
......@@ -144,6 +147,9 @@ export class DiscussionDialogComponent implements OnInit {
}
}
}
if (this.discussion.firstSentenceID == removedSentenceId) {
this.discussion.firstSentenceID = -1;
}
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment