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