diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 6d8b04c4..1bfd40e8 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -42,6 +42,7 @@ import { SavePost, TransferCommunity, } from "lemmy-js-client"; +import deepEqual from "lodash.isequal"; import { relTags } from "../../config"; import { BanType, @@ -168,7 +169,7 @@ export class PostListing extends Component { } componentWillReceiveProps(nextProps: PostListingProps) { - if (this.props !== nextProps) { + if (!deepEqual(this.props, nextProps)) { this.setState({ purgeLoading: false, reportLoading: false, @@ -183,7 +184,6 @@ export class PostListing extends Component { addModLoading: false, addAdminLoading: false, transferLoading: false, - imageExpanded: false, }); } }