mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:13:09 +02:00
Fix bug
This commit is contained in:
parent
bb9ab31d5e
commit
7f5a69f4d8
1 changed files with 1 additions and 1 deletions
|
@ -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}つのファイル)`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue