1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-10-31 00:07:48 +02:00

Chore: Fixed bug

This commit is contained in:
Laurent Cozic
2022-08-29 16:27:26 +01:00
parent ebf9a9375c
commit 6beaaf75bb

View File

@@ -544,7 +544,7 @@ export default class Folder extends BaseItem {
static async allAsTree(folders: FolderEntity[] = null, options: any = null) {
const all = folders ? folders : await this.all(options);
if (options.includeNotes) {
if (options && options.includeNotes) {
for (const folder of all) {
folder.notes = await Note.previews(folder.id);
}