|
@@ -152,7 +152,7 @@ namespace GxPress.Service.Implement.Note
|
|
|
var middle = await _middleRepository.GetMiddleAsync(request.FolderId);
|
|
|
result.Id = noteId;
|
|
|
result.FolderId = request.FolderId;
|
|
|
- result.FolderName = middle.FolderName;
|
|
|
+ result.FolderName = middle == null ? "" : middle.FolderName;
|
|
|
transactionScope.Complete();
|
|
|
}
|
|
|
}
|
|
@@ -648,7 +648,7 @@ namespace GxPress.Service.Implement.Note
|
|
|
{
|
|
|
Id = entity.Id,
|
|
|
FolderId = entity.FolderId,
|
|
|
- FolderName = middleDto.FolderName
|
|
|
+ FolderName = middleDto == null ? "" : middleDto.FolderName
|
|
|
};
|
|
|
return result;
|
|
|
}
|