diff --git a/backend/ebios_rm/models.py b/backend/ebios_rm/models.py index bbb46688b..32329aa2f 100644 --- a/backend/ebios_rm/models.py +++ b/backend/ebios_rm/models.py @@ -273,6 +273,8 @@ def get_gravity_display(self): "hexcolor": "#f9fafb", } risk_matrix = self.parsed_matrix + if not risk_matrix["impact"][self.gravity].get("hexcolor"): + risk_matrix["impact"][self.gravity]["hexcolor"] = "#f9fafb" return { **risk_matrix["impact"][self.gravity], "value": self.gravity,