Revert "avoid TS errors in get-note-summary"

This reverts commit 6785996960.
This commit is contained in:
Hazel K 2024-10-02 00:49:25 -04:00
parent 2cad08001a
commit 5a36c91bf1
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ export const getNoteSummary = (note?: Misskey.entities.Note | null): string => {
}
// ファイルが添付されているとき
if (note.files && note.files.length !== 0) {
if ((note.files || []).length !== 0) {
summary += ` (${i18n.tsx.withNFiles({ n: note.files.length })})`;
}