Skip to content

Commit

Permalink
Chore: Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Aug 29, 2022
1 parent ebf9a93 commit 6beaaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/models/Folder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6beaaf7

Please sign in to comment.