We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca75e15 + 2edafdb commit 126a792Copy full SHA for 126a792
1 file changed
website/MyWebApp/Views/AdminContent/PageEditor.cshtml
@@ -66,7 +66,9 @@
66
</form>
67
@section Scripts {
68
<script>
69
- const layoutZones = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(ViewBag.LayoutZones));
+ const layoutZones = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(
70
+ ViewBag.LayoutZones as IReadOnlyDictionary<string, string[]> ??
71
+ new Dictionary<string, string[]>()));
72
</script>
73
<script src="~/js/page-editor.js" asp-append-version="true"></script>
74
0 commit comments