Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: always set external_id rather then preserving default values for…
Browse files Browse the repository at this point in the history
… consistency.
  • Loading branch information
Enngage committed Apr 1, 2020
1 parent 6683876 commit 99ac6d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/translation-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export class TranslationHelper {
const val = (data as any)[key];
if (key.toLowerCase() === 'id') {
const id = (data as any).id;
const codename = (data as any).codename;
const externalId = (data as any).external_id;

if (!externalId && id) {
if (id) {
data.external_id = id;
delete data.id;
}
Expand Down

0 comments on commit 99ac6d5

Please sign in to comment.