null check to be consistent with mobile codebase

This commit is contained in:
Kyle Spearrin 2020-02-10 10:20:45 -05:00
parent 2d726ee3af
commit fd260dfbae
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ export class ExportService implements ExportServiceAbstraction {
if (format === 'csv') {
const foldersMap = new Map<string, FolderView>();
decFolders.forEach((f) => {
foldersMap.set(f.id, f);
if (f.id != null) {
foldersMap.set(f.id, f);
}
});
const exportCiphers: any[] = [];