From 06d1ee52908d7cb81958b54b41f064969fbf126a Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Sat, 21 Mar 2026 21:58:13 -0400 Subject: [PATCH] [18.0][FIX] mis_builder: guard against falsy drilldown action When a user clicks a computed KPI cell (e.g. ``profit - loss``), ``mis_report_instance.drilldown()`` returns ``False`` because the expression has no account variable. The JS handler passed this falsy value to ``doAction()`` which threw: No view found for act_window action undefined Add a truthy check before calling ``doAction()``. Closes #776 Co-Authored-By: Claude Opus 4.6 (1M context) --- mis_builder/static/src/components/mis_report_widget.esm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mis_builder/static/src/components/mis_report_widget.esm.js b/mis_builder/static/src/components/mis_report_widget.esm.js index c00d6177a..fff21988e 100644 --- a/mis_builder/static/src/components/mis_report_widget.esm.js +++ b/mis_builder/static/src/components/mis_report_widget.esm.js @@ -137,7 +137,9 @@ export class MisReportWidget extends Component { [this._instanceId(), drilldown], {context: this.context} ); - this.action.doAction(action); + if (action) { + this.action.doAction(action); + } } async refresh() {