mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
fix state change
This commit is contained in:
@@ -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