JS Backend: add the missing single quote (') (#252)

This commit is contained in:
folex 2021-08-24 14:51:33 +03:00 committed by GitHub
parent 3de8571be9
commit 2124b88442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ case class JavaScriptFunc(func: FuncRes) {
case Arg(argName, OptionType(_)) =>
s"""h.on('$dataServiceId', '$argName', () => {return $argName === null ? [] : [$argName];});"""
case Arg(argName, _: DataType) =>
s"""h.on('$dataServiceId, '$argName', () => {return $argName;});"""
s"""h.on('$dataServiceId', '$argName', () => {return $argName;});"""
case Arg(argName, at: ArrowType) =>
val value = s"$argName(${argsCallToJs(
at