Skip to content

PivotTable does not hide UI for configured heatmap aggregation #5161

@Flaurite

Description

@Flaurite

Environment

Jmix version: 2.7.6

Steps To Reproduce

  1. Go to https://demo.jmix.io/ui-samples/sample/pivot-table-ui-properties?tab=Description
  2. Then select:
    • Heatmap
    • Sum
    • Tip
  3. Disable UI mode by clicking button

Current Behavior

Nothing changes, and exception occurs in the console (attached not obfuscated stacktrace):

Uncaught TypeError: Cannot read properties of undefined (reading '0')
    at pivot.coffee:55:36
    at JmixPivotTable._getAggregationOptions (jmix-pivot-table.js:626:38)
    at JmixPivotTable._preparePivotTableOptions (jmix-pivot-table.js:300:39)
    at jmix-pivot-table.js:265:42
    at JmixPivotTable._recreatePivot (jmix-pivot-table.js:276:15)
    at JmixPivotTable._updateOptions (jmix-pivot-table.js:759:14)

Expected Behavior

UI of PivotTable should be hidden.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions