Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlagunas committed Nov 18, 2024
1 parent 2ba16ed commit 1b91e31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Reveal.Sdk.Dom/Visualizations/GridVisualization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ public GridVisualization(DataSourceItem dataSourceItem) : this(null, dataSourceI
public GridVisualization(string title, DataSourceItem dataSourceItem) : base(title, dataSourceItem) { ChartType = ChartType.Grid; }

[JsonIgnore]
public List<TabularColumn> Columns { get {
public List<TabularColumn> Columns
{
get
{
if (VisualizationDataSpec is GridVisualizationDataSpec gds)
{
return gds.Columns;
}
else
else
{
return new List<TabularColumn>();
}
} }
}
}

[JsonProperty(Order = 7)]
VisualizationDataSpec VisualizationDataSpec { get; set; } = new GridVisualizationDataSpec();
Expand Down

0 comments on commit 1b91e31

Please sign in to comment.