mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
fix: fix response data assignment error (#2129)
This commit is contained in:
@ -165,7 +165,7 @@ class ApplicationEditPage extends React.Component {
|
||||
CertBackend.getCerts(owner)
|
||||
.then((res) => {
|
||||
this.setState({
|
||||
certs: (res.msg === undefined) ? res : [],
|
||||
certs: res.data || [],
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ class MessageEditPage extends React.Component {
|
||||
ChatBackend.getChats("admin")
|
||||
.then((res) => {
|
||||
this.setState({
|
||||
chats: (res.msg === undefined) ? res : [],
|
||||
chats: res.data || [],
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user