Verified Commit 2dc1ad21 authored by Chocobozzz's avatar Chocobozzz
Browse files

Abuse may not have predefined reasons

parent 1e6231ec
......@@ -29,6 +29,8 @@ export class AbuseDetailsComponent implements OnInit {
}
ngOnInit (): void {
if (!this.abuse.predefinedReasons) return
this.predefinedReasons = this.abuse.predefinedReasons.map(r => ({
id: r,
label: this.predefinedReasonsTranslations[r]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment