From bcee11863cec9085b130e109c539722cfd3b596a Mon Sep 17 00:00:00 2001 From: streamich Date: Fri, 8 Dec 2023 10:42:15 +0100 Subject: [PATCH] =?UTF-8?q?fix(json-type):=20=F0=9F=90=9B=20correct=20syst?= =?UTF-8?q?em=20dereference?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/json-type/type/classes/AbstractType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json-type/type/classes/AbstractType.ts b/src/json-type/type/classes/AbstractType.ts index 4f684197c0..12fdc3d5c8 100644 --- a/src/json-type/type/classes/AbstractType.ts +++ b/src/json-type/type/classes/AbstractType.ts @@ -55,7 +55,7 @@ export abstract class AbstractType 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; }