Skip to content

Commit

Permalink
Merge 868c8b3 into 9c20992
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Aug 6, 2019
2 parents 9c20992 + 868c8b3 commit 97714d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -79,7 +79,7 @@
"ts-mockito": "2.4.2",
"ts-node": "8.3.0",
"tslint": "5.18.0",
"typescript": "3.4.5",
"typescript": "3.5.3",
"wait-on": "3.3.0",
"webdriver-manager": "12.1.6",
"zone.js": "0.10.1"
Expand Down
3 changes: 2 additions & 1 deletion src/app/services/editors/single-row-editor.service.ts
Expand Up @@ -72,7 +72,8 @@ export abstract class SingleRowEditorService<T extends TableRow> extends EditorS
} else {
// we are creating a new entity
this._originalValue = new this._entityClass();
this._originalValue[this._entityIdField] = getNumberOrString(id);
// TODO: get rid of this type hack, see: https://github.com/microsoft/TypeScript/issues/32704
(this._originalValue as any)[this._entityIdField] = getNumberOrString(id);
this._isNew = true;
}

Expand Down

0 comments on commit 97714d9

Please sign in to comment.