mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
fix state change
This commit is contained in:
@@ -48,6 +48,8 @@
|
||||
.NewsContent {
|
||||
overflow-y: auto;
|
||||
scrollbar-width: none;
|
||||
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.Commit {
|
||||
|
||||
@@ -35,9 +35,9 @@ export default class NewsSection extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
setSelected(item: string) {
|
||||
this.setState({ selected: item })
|
||||
|
||||
this.showNews()
|
||||
this.setState({ selected: item }, () => {
|
||||
this.showNews()
|
||||
})
|
||||
}
|
||||
|
||||
async showLatestCommits() {
|
||||
|
||||
Reference in New Issue
Block a user