fix: null check
This commit is contained in:
parent
f67261d1e3
commit
e300633011
1 changed files with 2 additions and 2 deletions
|
@ -31,10 +31,10 @@ function checkWordMute(
|
||||||
scyllaNote.renoteCw ?? ""
|
scyllaNote.renoteCw ?? ""
|
||||||
} ${scyllaNote.renoteText ?? ""}`;
|
} ${scyllaNote.renoteText ?? ""}`;
|
||||||
|
|
||||||
if (scyllaNote.replyFiles.length > 0) {
|
if (scyllaNote.replyFiles && scyllaNote.replyFiles.length > 0) {
|
||||||
text += ` ${scyllaNote.replyFiles.map((f) => f.comment ?? "").join(" ")}`;
|
text += ` ${scyllaNote.replyFiles.map((f) => f.comment ?? "").join(" ")}`;
|
||||||
}
|
}
|
||||||
if (scyllaNote.renoteFiles.length > 0) {
|
if (scyllaNote.renoteFiles && scyllaNote.renoteFiles.length > 0) {
|
||||||
text += ` ${scyllaNote.renoteFiles
|
text += ` ${scyllaNote.renoteFiles
|
||||||
.map((f) => f.comment ?? "")
|
.map((f) => f.comment ?? "")
|
||||||
.join(" ")}`;
|
.join(" ")}`;
|
||||||
|
|
Loading…
Reference in a new issue