Skip to content

Commit f5c4b84

Browse files
committed
Bug where if you deleted a folder with a folder that had a note, every note would be removed
1 parent 54a3dc6 commit f5c4b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenNote/openNote/services/storageService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ openNote.service("storageService", function ($rootScope) {
161161
});
162162

163163
results.rows.filter(self.folderFilter).forEach(function(subFolder){
164-
self.deleteFolder(subFolder);
164+
self.deleteFolder(subFolder.doc);
165165
});
166166
localDatabase.remove(folder).then(callback);
167167
});

0 commit comments

Comments
 (0)