From ad461343d2b0d35c419692000f602b4b3c4bb273 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 11 Sep 2021 14:24:54 -0500 Subject: [PATCH] Status: fix propType warnings with OrderedSet --- app/soapbox/features/status/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/status/index.js b/app/soapbox/features/status/index.js index 03890cb26..3f9ad0f0c 100644 --- a/app/soapbox/features/status/index.js +++ b/app/soapbox/features/status/index.js @@ -109,8 +109,8 @@ const makeMapStateToProps = () => { const mapStateToProps = (state, props) => { const status = getStatus(state, { id: props.params.statusId }); - let ancestorsIds = Immutable.List(); - let descendantsIds = Immutable.List(); + let ancestorsIds = Immutable.OrderedSet(); + let descendantsIds = Immutable.OrderedSet(); if (status) { ancestorsIds = getAncestorsIds(state, { id: state.getIn(['contexts', 'inReplyTos', status.get('id')]) }); @@ -146,8 +146,8 @@ class Status extends ImmutablePureComponent { params: PropTypes.object.isRequired, dispatch: PropTypes.func.isRequired, status: ImmutablePropTypes.map, - ancestorsIds: ImmutablePropTypes.list, - descendantsIds: ImmutablePropTypes.list, + ancestorsIds: ImmutablePropTypes.orderedSet, + descendantsIds: ImmutablePropTypes.orderedSet, intl: PropTypes.object.isRequired, askReplyConfirmation: PropTypes.bool, domain: PropTypes.string,