1
0

fix crash during startup

This commit is contained in:
Hazel K
2024-09-29 23:22:58 -04:00
parent 01ec9635c1
commit 7b104ffe94
+3 -1
View File
@@ -39,7 +39,9 @@ export class LatestNote {
})
public note: MiNote | null;
constructor(data: Partial<LatestNote>) {
constructor(data?: Partial<LatestNote>) {
if (!data) return;
for (const [k, v] of Object.entries(data)) {
(this as Record<string, unknown>)[k] = v;
}