1
0
Fork 0
forked from gitea/nas

#24 Fix editing circle post icon

This commit is contained in:
KMY 2023-09-26 18:05:58 +09:00
parent 13c51133d3
commit 28ab1ca973
3 changed files with 8 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import { changeCircle } from '../../../actions/compose';
import CircleSelect from '../components/circle_select';
const mapStateToProps = state => ({
unavailable: state.getIn(['compose', 'privacy']) !== 'circle',
unavailable: state.getIn(['compose', 'privacy']) !== 'circle' || !!state.getIn(['compose', 'id']),
circles: state.get('circles'),
circleId: state.getIn(['compose', 'circle_id']),
});