feat: fix the asynchronous issue in handleOrganizationChange in BaseListPage (#4090)

This commit is contained in:
IsAurora6
2025-08-17 14:59:49 +08:00
committed by GitHub
parent 2493ae9cfe
commit 955e73ddd1

View File

@@ -42,10 +42,11 @@ class BaseListPage extends React.Component {
handleOrganizationChange = () => {
this.setState({
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 = () => {