Skip to content

Commit

Permalink
fix(json-type): 🐛 correct system dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Dec 8, 2023
1 parent 6092ccc commit bcee118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-type/type/classes/AbstractType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export abstract class AbstractType<S extends schema.Schema> implements BaseType<
protected abstract schema: S;

public getSystem(): TypeSystem {
const system = type.system;
const system = this.system;
if (!system) throw new Error('NO_SYSTEM');
return system;
}
Expand Down

0 comments on commit bcee118

Please sign in to comment.