diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-09 05:31:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-09 05:31:26 +0900 |
| commit | 7f5a69f4d8dbf5b2a02fc324ecc1dfced56db4cd (patch) | |
| tree | 7d5b8b49dab51c9dcdcf6e8a30e3740542a80ac6 /src/misc | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-7f5a69f4d8dbf5b2a02fc324ecc1dfced56db4cd.tar.gz sharkey-7f5a69f4d8dbf5b2a02fc324ecc1dfced56db4cd.tar.bz2 sharkey-7f5a69f4d8dbf5b2a02fc324ecc1dfced56db4cd.zip | |
Fix bug
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/get-note-summary.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts index 3c6f2dd3d6..d03b174b41 100644 --- a/src/misc/get-note-summary.ts +++ b/src/misc/get-note-summary.ts @@ -17,7 +17,7 @@ const summarize = (note: any): string => { summary += note.text ? note.text : ''; // ファイルが添付されているとき - if (note.files.length != 0) { + if ((note.files || []).length != 0) { summary += ` (${note.files.length}つのファイル)`; } |