toast('Added new fact.', true);
},
- updateFact(editedValues, editedScores, newTags) {
+ updateFact(editedValues, editedScores, newTags, editedNames) {
// Do a comparison of facts and new facts--replace uniques with ones in the new one
let updated = this.selectedSource.facts.map((f) => {
- if (!editedValues[f.unique] && !editedScores[f.unique]) {
+ if (!editedValues[f.unique] && !editedScores[f.unique] && !editedNames[f.name]) {
return f; // return original fact
}
let fact = { trait: f.trait };
@@ -1151,6 +1152,12 @@