From ad461343d2b0d35c419692000f602b4b3c4bb273 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 11 Sep 2021 14:24:54 -0500 Subject: [PATCH 1/2] 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, From b91c7055eaad622c74ba6255edd9f26c5cb88ae3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 11 Sep 2021 14:31:24 -0500 Subject: [PATCH 2/2] StatusContent: add missing `key` props --- app/soapbox/components/status_content.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/status_content.js b/app/soapbox/components/status_content.js index 0e5d066ea..508e2de1f 100644 --- a/app/soapbox/components/status_content.js +++ b/app/soapbox/components/status_content.js @@ -265,15 +265,16 @@ class StatusContent extends React.PureComponent { } if (status.get('poll')) { - output.push(); + output.push(); } return output; } else { const output = [
); + output.push(); } return output;