Fix bug when report has no params dict

This commit is contained in:
Lance Edgar 2021-12-08 12:21:23 -06:00
parent 60222c4977
commit 6f60387f30

View file

@ -281,7 +281,7 @@ class ReportOutputView(ExportMasterView):
report = kwargs['instance']
params_data = []
for name, value in report.params.items():
for name, value in (report.params or {}).items():
params_data.append({
'key': name,
'value': value,