mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 11:22:55 +08:00
fix: fix response data assignment error in ApplicationEditPage.js (#2126)
This commit is contained in:
@@ -149,13 +149,13 @@ class ApplicationEditPage extends React.Component {
|
|||||||
getOrganizations() {
|
getOrganizations() {
|
||||||
OrganizationBackend.getOrganizations("admin")
|
OrganizationBackend.getOrganizations("admin")
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.status === "error") {
|
if (res.status === "error") {
|
||||||
this.setState({
|
this.setState({
|
||||||
isAuthorized: false,
|
isAuthorized: false,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.setState({
|
this.setState({
|
||||||
organizations: (res.msg === undefined) ? res : [],
|
organizations: res.data || [],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user