Skip to content

Commit 5da74f2

Browse files
committed
Errbit | fixing Source List Item
1 parent 8d3e8c0 commit 5da74f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/common/SourceListItem.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const SourceListItem = ({ option, listItemProps, style }) => {
6363
}
6464
secondary={
6565
(
66-
isNumber(option.summary.active_concepts) ?
66+
isNumber(option?.summary?.active_concepts) ?
6767
<span className='flex-vertical-center'>
6868
<Typography
6969
sx={{ display: 'inline', color: 'rgba(0, 0, 0, 0.6)', fontSize: '14px' }}
@@ -75,7 +75,7 @@ const SourceListItem = ({ option, listItemProps, style }) => {
7575
{ option.suggestionType && <SubText text={option.suggestionType} divider /> }
7676
</span> :
7777
(
78-
option.suggestionType ? <SubText text={option.suggestionType} /> : ''
78+
option?.suggestionType ? <SubText text={option.suggestionType} /> : ''
7979
)
8080
)
8181
}

0 commit comments

Comments
 (0)