Skip to content

Commit

Permalink
Fix display of scalar result of stored procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslevesque committed Oct 12, 2020
1 parent 631747a commit f7b2e73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using CosmosDBStudio.Model;
using EssentialMVVM;
using Newtonsoft.Json;

namespace CosmosDBStudio.ViewModel.EditorTabs
{
public class StoredProcedureResultViewModel : BindableBase
{
public StoredProcedureResultViewModel(StoredProcedureResult result)
{
Text = result.Body?.ToString() ?? string.Empty;
Text = result.Body?.ToString(Formatting.Indented) ?? string.Empty;
ScriptLog = result.ScriptLog;
Error = result.Error?.Message ?? string.Empty;
if (result.Error != null)
Expand Down

0 comments on commit f7b2e73

Please sign in to comment.