Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-5993

Adding number variable filter twice to a dashboard can cause it to crash

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 3.10.0-alpha1, 3.10.0
    • None
    • frontend
    • None
    • Not defined

    Description

      Brief summary of the bug. What is it ? Where is it ?

      Optimize crashes when adding the same number variable twice as a filter to dashboard, where one of them has the null or undefined option.

      Steps to reproduce:

      • create a dashboard that has a bunch of reports
      • click the add filter button from the edit mode
      • select a variable of type number (e.g. integerVar, doubleVar)
      • enable the checkbox that says: 'Allow viewer to add filter values'
      • add the filter and open its menu
      • select a custom value to filter by as shown in the screenshot
      • add the same variable again but this time, select the null or undefined option
      • enable the null and undefined option
      • Save the dashboard to go to the view mode
      • Open the first variable menu (the one with the custom variable set)

      Actual result:

      • Optimize crashes with the following error
        TypeError: Cannot read properties of null (reading 'toLowerCase')
        

      Expected result:

      The popover opens normally without an issue

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              omran.abazeed Omran Abazeed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce