diff --git a/src/models/entities/note.ts b/src/models/entities/note.ts index 33a6d2bc2..75ecf57ff 100644 --- a/src/models/entities/note.ts +++ b/src/models/entities/note.ts @@ -217,7 +217,7 @@ export class Note { public renoteUserHost: string | null; //#endregion - constructor(data: Partial) { + constructor(data?: Partial | null) { if (data == null) return; for (const [k, v] of Object.entries(data)) {