summaryrefslogtreecommitdiffstats
path: root/ui/src/components/main.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-07 19:52:00 -0500
committerDessalines <tyhou13@gmx.com>2020-03-07 19:52:00 -0500
commit5396cb2f5cc565c46d4fc79f5d6204f379d5089f (patch)
tree3b526c487a13af388a0151dc65cb83842a7e63c5 /ui/src/components/main.tsx
parentac280782b27b07e5282af03e329253503100ef99 (diff)
Running cargo update.
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r--ui/src/components/main.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx
index b772bd87..51b31ced 100644
--- a/ui/src/components/main.tsx
+++ b/ui/src/components/main.tsx
@@ -51,7 +51,6 @@ import {
createPostLikeFindRes,
editPostFindRes,
commentsToFlatNodes,
- commentSortSortType,
setupTippy,
} from '../utils';
import { i18n } from '../i18next';
@@ -649,9 +648,9 @@ export class Main extends Component<any, MainState> {
UserService.Instance.user.show_nsfw)
) {
this.state.posts.unshift(data.post);
- this.setState(this.state);
}
}
+ this.setState(this.state);
} else if (res.op == UserOperation.EditPost) {
let data = res.data as PostResponse;
editPostFindRes(data, this.state.posts);