mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
fix: fix response data in PricingPage.js (#2143)
This commit is contained in:
parent
e98264f957
commit
c5bb916651
@ -85,17 +85,17 @@ class PricingPage extends React.Component {
|
||||
}
|
||||
|
||||
PricingBackend.getPricing(this.state.owner, pricingName)
|
||||
.then((result) => {
|
||||
if (result.status === "error") {
|
||||
Setting.showMessage("error", result.msg);
|
||||
.then((res) => {
|
||||
if (res.status === "error") {
|
||||
Setting.showMessage("error", res.msg);
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
loading: false,
|
||||
pricing: result,
|
||||
pricing: res.data,
|
||||
});
|
||||
this.onUpdatePricing(result);
|
||||
this.onUpdatePricing(res.data);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user