diff --git a/src/Pim/index.tsx b/src/Pim/index.tsx index 32fe2f9..cbc8dc1 100644 --- a/src/Pim/index.tsx +++ b/src/Pim/index.tsx @@ -60,13 +60,19 @@ const itemsSelector = createSelector( if (collectionInfo.type === "ADDRESS_BOOK") { addressBookItems = syncEntriesToItemMap(collectionInfo, syncEntries, addressBookItems); - collectionsAddressBook.push(collectionInfo); + if (!syncJournal.journal.readOnly) { + collectionsAddressBook.push(collectionInfo); + } } else if (collectionInfo.type === "CALENDAR") { calendarItems = syncEntriesToEventItemMap(collectionInfo, syncEntries, calendarItems); - collectionsCalendar.push(collectionInfo); + if (!syncJournal.journal.readOnly) { + collectionsCalendar.push(collectionInfo); + } } else if (collectionInfo.type === "TASKS") { taskListItems = syncEntriesToTaskItemMap(collectionInfo, syncEntries, taskListItems); - collectionsTaskList.push(collectionInfo); + if (!syncJournal.journal.readOnly) { + collectionsTaskList.push(collectionInfo); + } } } );