فهرست منبع

handle case where upgrade notes null

Alexander Belanger 4 سال پیش
والد
کامیت
e37279d915
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      dashboard/src/main/home/modals/UpgradeChartModal.tsx

+ 1 - 1
dashboard/src/main/home/modals/UpgradeChartModal.tsx

@@ -44,7 +44,7 @@ export default class UpgradeChartModal extends Component<PropsType, StateType> {
       version: this.props.currentChart.latest_version,
     })
     .then((res) => {
-      if (res.data.upgrade_notes.length == 0) {
+      if (!res.data.upgrade_notes || res.data.upgrade_notes.length == 0) {
         this.setState({ notes: `
 ## Version ${this.props.currentChart.chart.metadata.version} -> ${this.props.currentChart.latest_version}
 No upgrade notes available. This update should be backwards-compatible.