Skip to content

Commit 600a483

Browse files
committed
correct js report error that could occur.
1 parent 58f8acd commit 600a483

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,11 @@ private string HackGroupingToAllowAll(int groupingLevel)
825825
{
826826
return $@"
827827
var customizeBox = document.getElementsByClassName('customizebox')[0];
828-
var groupingInput = customizeBox.querySelector('input');
829-
groupingInput.max = {groupingLevel};
828+
if(customizeBox){{
829+
var groupingInput = customizeBox.querySelector('input');
830+
groupingInput.max = {groupingLevel};
831+
}}
832+
830833
";
831834
832835
}

0 commit comments

Comments
 (0)