From da7a78c7824df0fe5c99de8028e498b0f08a426d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Dang=C3=A5rden?= Date: Fri, 6 Sep 2024 14:36:03 +0200 Subject: [PATCH] Fixed issue in scalar template --- .../Templates/Scalars/ScalarTemplate.tt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs b/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs index 80bed64..f4bbc1c 100644 --- a/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs +++ b/src/Linq2GraphQL.Generator/Templates/Scalars/ScalarTemplate.tt.cs @@ -18,7 +18,7 @@ public ScalarTemplate(GraphqlType scalarType, string namespaceName) } private string className => scalarType.Name; - private string classDescription => scalarType.Description; + private string classDescription => scalarType.Description ?? className;