fix: status.emojis.toJS is not a function

This commit is contained in:
P. Reis 2024-12-05 18:16:54 -03:00
parent 440ed28b11
commit 575fd24ec1
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ const PureStatus: React.FC<IPureStatus> = (props) => {
if ((e && e.shiftKey) || !boostModal) {
modalReblog();
} else {
dispatch(openModal('BOOST', { status: statusImmutable, onReblog: modalReblog })); // fix later, ReplyIndicator component: status.emojis.toJS is not a function
dispatch(openModal('BOOST', { status: status, onReblog: modalReblog }));
}
};

View File

@ -50,7 +50,7 @@ const ReplyIndicator: React.FC<IReplyIndicator> = ({ className, status, hideActi
className='break-words'
size='sm'
direction={getTextDirection(status.search_index)}
emojis={status.emojis.toJS()}
emojis={status?.emojis?.toJS() ?? status.emojis}
mentions={status.mentions.toJS()}
html={{ __html: status.content }}
/>