Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66733

Broken graphs (due to the JavaScript error) on the Project page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • echarts-api-plugin
    • None

      Hi,

      I'm getting an "Uncaught SyntaxError: Unexpected token ?" JavaScript error from the "/static/012ea04e/plugin/echarts-api/js/trend-chart.js" file from this code:

       yAxis: [{
                      type: 'value',
                      min: chartModel.rangeMin ?? 'dataMin',
                      max: chartModel.rangeMax ?? 'dataMax',
                      axisLabel: {
                          color: textColor
                      },
                      minInterval: chartModel.integerRangeAxis ? 1 : null
                  }
       

      It's happening because of "Nullish coalescing operator" usage ("??"), which is only supported since Google Chrome 80 / Firefox 72.

            drulli Ulli Hafner
            aik099 bfhzog6i
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: