Skip to content

Commit

Permalink
Change the default expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
tackme31 committed Mar 27, 2020
1 parent 2b5ee6b commit 919b346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlexibleContainer/Extensions/SitecoreHelperExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static HtmlString RenderFlexibleContainer(this SitecoreHelper helper)
Assert.ArgumentNotNull(helper, nameof(helper));

var parameterValue = RenderingContext.Current.Rendering.Parameters["Expression"];
var expression = string.IsNullOrWhiteSpace(parameterValue) ? "div{@[content]}" : parameterValue;
var expression = string.IsNullOrWhiteSpace(parameterValue) ? "div" : parameterValue;
var result = ExpressionRenderer.Render(expression, textFormatter);
return new HtmlString(result);

Expand Down

0 comments on commit 919b346

Please sign in to comment.