Skip to content

Commit 2c91062

Browse files
committed
Angular
- fix service exception on null string result
1 parent 05b57f3 commit 2c91062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Angular/Writers/AngularServiceWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public virtual void Write(AngularWriteConfiguration configuration)
174174
ICodeFragment nextCode = localCode;
175175
if (isGuidReturnType)
176176
{
177-
nextCode = localCode.Method("replace", Code.TypeScript("/(^\"|\"$)/g"), Code.String(string.Empty));
177+
nextCode = localCode.NullConditional().Method("replace", Code.TypeScript("/(^\"|\"$)/g"), Code.String(string.Empty));
178178
}
179179
if (isDateReturnType)
180180
{

0 commit comments

Comments
 (0)