fix: fixed test cases

This commit is contained in:
sundasnoreen12
2024-05-13 17:21:53 +05:00
parent 746b0fed4b
commit bb29f9624e
3 changed files with 15 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ const NotificationPreferenceColumn = ({ appId, channel, appPreference }) => {
}, [appId]);
const renderPreference = (preference) => (
(preference.coreNotificationTypes.length > 0 || preference.id !== 'core') && (
(preference?.coreNotificationTypes?.length > 0 || preference.id !== 'core') && (
<div
key={`${preference.id}-${channel}`}
id={`${preference.id}-${channel}`}