Skip to content

Commit 49bde4d

Browse files
authored
Fix: handle none argument for metadata (#934)
1 parent 3a9f965 commit 49bde4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/modules/incident/incident.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ def generate_incident_modal_view(
351351
"""Generate the incident creation modal view."""
352352
if options is None:
353353
options = []
354+
if not private_metadata:
355+
private_metadata = ""
354356
handbook_string = f"For more details on what constitutes a security incident, visit our <{INCIDENT_HANDBOOK_URL}|Incident Management Handbook>"
355357
return {
356358
"type": "modal",

0 commit comments

Comments
 (0)