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)
|
PricingBackend.getPricing(this.state.owner, pricingName)
|
||||||
.then((result) => {
|
.then((res) => {
|
||||||
if (result.status === "error") {
|
if (res.status === "error") {
|
||||||
Setting.showMessage("error", result.msg);
|
Setting.showMessage("error", res.msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
pricing: result,
|
pricing: res.data,
|
||||||
});
|
});
|
||||||
this.onUpdatePricing(result);
|
this.onUpdatePricing(res.data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user