From ddfadca618b9b21433babc38cee218d7154d6ea8 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Fri, 31 May 2024 13:24:22 -0400 Subject: [PATCH] Checking for the type of event param before executing a lazy click (#22429) --- ui/app/controllers/allocations/allocation/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/app/controllers/allocations/allocation/index.js b/ui/app/controllers/allocations/allocation/index.js index 484d00091..c5900994e 100644 --- a/ui/app/controllers/allocations/allocation/index.js +++ b/ui/app/controllers/allocations/allocation/index.js @@ -163,6 +163,9 @@ export default class IndexController extends Controller.extend(Sortable) { @action taskClick(allocation, task, event) { + if (!(event instanceof Event)) { + event = null; + } lazyClick([() => this.send('gotoTask', allocation, task), event]); }