瀏覽代碼

handle case where upgrade notes null

Alexander Belanger 5 年之前
父節點
當前提交
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.