diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-02-11 20:32:22 -0500 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-02-11 20:32:22 -0500 |
commit | 7d30ae6c423290e502f72be566c4aba4fe62f9ff (patch) | |
tree | 53141e505c042cc69d481e4c731cc727728888a3 /src/fields/Key.ts | |
parent | 867fd2bffb67be06e889d3ac0fb6603bc8c4d92a (diff) |
asdkjfl
Diffstat (limited to 'src/fields/Key.ts')
-rw-r--r-- | src/fields/Key.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/Key.ts b/src/fields/Key.ts index a7303f351..084b444a6 100644 --- a/src/fields/Key.ts +++ b/src/fields/Key.ts @@ -10,8 +10,8 @@ export class Key extends Field { return this.name; } - constructor(name: string) { - super(Utils.GenerateDeterministicGuid(name)); + constructor(name: string, id?: string) { + super(id || Utils.GenerateDeterministicGuid(name)); this.name = name; } |