Fix: ブーストできない問題 (#803)

This commit is contained in:
KMY(雪あすか) 2024-08-17 20:13:03 +09:00 committed by GitHub
parent fef0b7e28b
commit a40d491c66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,11 +79,11 @@ const mapDispatchToProps = (dispatch, { contextType }) => ({
}, },
onReblog (status, e) { onReblog (status, e) {
dispatch(toggleReblog(status.get('id'), e.shiftKey)); dispatch(toggleReblog(status.get('id'), e?.shiftKey || false));
}, },
onReblogForceModal (status) { onReblogForceModal (status) {
dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: this.onModalReblog } })); dispatch(openModal({ modalType: 'BOOST', modalProps: { status, onReblog: this.onReblog } }));
}, },
onFavourite (status) { onFavourite (status) {