Skip to content

Commit

Permalink
do not add "Copy of" to the id
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Nov 6, 2023
1 parent 2e2421a commit 487ad88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export class DuplicateRecordService {
entityConstructor.schema,
);
const entity = new entityConstructor();
const attribute = entityConstructor.toStringAttributes[0];
const nameAttribute = entityConstructor.toStringAttributes[0];
for (const key of keys) {
if (attribute === key) {
if (nameAttribute === key && nameAttribute !== "entityId") {
entityformat[key] = `Copy of ${entityformat[key]}`;
}
entity[key] = entityformat[key];
Expand Down

0 comments on commit 487ad88

Please sign in to comment.