mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 11:00:28 +08:00
feat: fix the asynchronous issue in handleOrganizationChange in BaseListPage (#4090)
This commit is contained in:
@@ -42,10 +42,11 @@ class BaseListPage extends React.Component {
|
|||||||
handleOrganizationChange = () => {
|
handleOrganizationChange = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
organizationName: this.props.match?.params.organizationName || Setting.getRequestOrganization(this.props.account),
|
organizationName: this.props.match?.params.organizationName || Setting.getRequestOrganization(this.props.account),
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
const {pagination} = this.state;
|
||||||
|
this.fetch({pagination});
|
||||||
});
|
});
|
||||||
|
|
||||||
const {pagination} = this.state;
|
|
||||||
this.fetch({pagination});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
handleTourChange = () => {
|
handleTourChange = () => {
|
||||||
|
Reference in New Issue
Block a user