fix: status.emojis.toJS is not a function
This commit is contained in:
parent
440ed28b11
commit
575fd24ec1
|
@ -184,7 +184,7 @@ const PureStatus: React.FC<IPureStatus> = (props) => {
|
||||||
if ((e && e.shiftKey) || !boostModal) {
|
if ((e && e.shiftKey) || !boostModal) {
|
||||||
modalReblog();
|
modalReblog();
|
||||||
} else {
|
} 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 }));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ const ReplyIndicator: React.FC<IReplyIndicator> = ({ className, status, hideActi
|
||||||
className='break-words'
|
className='break-words'
|
||||||
size='sm'
|
size='sm'
|
||||||
direction={getTextDirection(status.search_index)}
|
direction={getTextDirection(status.search_index)}
|
||||||
emojis={status.emojis.toJS()}
|
emojis={status?.emojis?.toJS() ?? status.emojis}
|
||||||
mentions={status.mentions.toJS()}
|
mentions={status.mentions.toJS()}
|
||||||
html={{ __html: status.content }}
|
html={{ __html: status.content }}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue