fix: fix response data in PricingPage.js (#2143)

This commit is contained in:
Yaodong Yu 2023-07-27 10:46:31 +08:00 committed by GitHub
parent e98264f957
commit c5bb916651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
});
}