|
|
|
@ -60,15 +60,21 @@ const itemsSelector = createSelector(
|
|
|
|
|
|
|
|
|
|
if (collectionInfo.type === "ADDRESS_BOOK") {
|
|
|
|
|
addressBookItems = syncEntriesToItemMap(collectionInfo, syncEntries, addressBookItems);
|
|
|
|
|
if (!syncJournal.journal.readOnly) {
|
|
|
|
|
collectionsAddressBook.push(collectionInfo);
|
|
|
|
|
}
|
|
|
|
|
} else if (collectionInfo.type === "CALENDAR") {
|
|
|
|
|
calendarItems = syncEntriesToEventItemMap(collectionInfo, syncEntries, calendarItems);
|
|
|
|
|
if (!syncJournal.journal.readOnly) {
|
|
|
|
|
collectionsCalendar.push(collectionInfo);
|
|
|
|
|
}
|
|
|
|
|
} else if (collectionInfo.type === "TASKS") {
|
|
|
|
|
taskListItems = syncEntriesToTaskItemMap(collectionInfo, syncEntries, taskListItems);
|
|
|
|
|
if (!syncJournal.journal.readOnly) {
|
|
|
|
|
collectionsTaskList.push(collectionInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|