fix(reports): make front-end handle nullified reported_id and reported_id

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-31 19:04:05 +02:00
parent b9a165a7fc
commit afd2ffe722
5 changed files with 48 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ export interface IReportNote extends IActionLogObject {
}
export interface IReport extends IActionLogObject {
id: string;
reported: IActor;
reported: IActor | undefined;
reporter: IPerson;
events?: IEvent[];
comments: IComment[];