mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 10:09:56 +00:00
fix bug collapsing previews when voting
This commit is contained in:
parent
ba8728ecc7
commit
e6909d4cd1
1 changed files with 2 additions and 2 deletions
|
@ -42,6 +42,7 @@ import {
|
||||||
SavePost,
|
SavePost,
|
||||||
TransferCommunity,
|
TransferCommunity,
|
||||||
} from "lemmy-js-client";
|
} from "lemmy-js-client";
|
||||||
|
import deepEqual from "lodash.isequal";
|
||||||
import { relTags } from "../../config";
|
import { relTags } from "../../config";
|
||||||
import {
|
import {
|
||||||
BanType,
|
BanType,
|
||||||
|
@ -168,7 +169,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps: PostListingProps) {
|
componentWillReceiveProps(nextProps: PostListingProps) {
|
||||||
if (this.props !== nextProps) {
|
if (!deepEqual(this.props, nextProps)) {
|
||||||
this.setState({
|
this.setState({
|
||||||
purgeLoading: false,
|
purgeLoading: false,
|
||||||
reportLoading: false,
|
reportLoading: false,
|
||||||
|
@ -183,7 +184,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
addModLoading: false,
|
addModLoading: false,
|
||||||
addAdminLoading: false,
|
addAdminLoading: false,
|
||||||
transferLoading: false,
|
transferLoading: false,
|
||||||
imageExpanded: false,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue