We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7acc754 commit a1e07b1Copy full SHA for a1e07b1
src/app/model/evidence-store.ts
@@ -76,7 +76,10 @@ export class EvidenceStore {
76
const newEntries = newEvidence[activityUuid];
77
if (Array.isArray(newEntries)) {
78
for (const entry of newEntries) {
79
- if (!this.isDuplicateEntry(activityUuid, entry)) {
+ const existingIndex = this._evidence[activityUuid].findIndex(e => e.id === entry.id);
80
+ if (existingIndex !== -1) {
81
+ this._evidence[activityUuid][existingIndex] = entry;
82
+ } else {
83
this._evidence[activityUuid].push(entry);
84
}
85
0 commit comments