From eead6c62193aef3fb6643ad95adcc73a796f8002 Mon Sep 17 00:00:00 2001 From: TJKoury Date: Tue, 22 Nov 2022 16:01:32 -0500 Subject: [PATCH] updated method call (#7642) --- src/idl_gen_ts.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/idl_gen_ts.cpp b/src/idl_gen_ts.cpp index 9fd1203f5..d37a40790 100644 --- a/src/idl_gen_ts.cpp +++ b/src/idl_gen_ts.cpp @@ -387,8 +387,7 @@ class TsGenerator : public BaseGenerator { return GenBBAccess() + ".__union_with_string" + arguments; case BASE_TYPE_VECTOR: return GenGetter(type.VectorType(), arguments); default: { - auto getter = GenBBAccess() + "." + - namer_.Method("read_" + GenType(type)) + arguments; + auto getter = GenBBAccess() + "." + "read" + GenType(type) + arguments; if (type.base_type == BASE_TYPE_BOOL) { getter = "!!" + getter; } return getter; }