From c7ec8190fb14037aa6dbb153d4e6a7529e49b981 Mon Sep 17 00:00:00 2001 From: Keenan Tullis Date: Tue, 10 Dec 2019 15:25:28 -0500 Subject: [PATCH] Gantt callback: default to node id as callback arg --- src/diagrams/gantt/ganttDb.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/diagrams/gantt/ganttDb.js b/src/diagrams/gantt/ganttDb.js index 90f5066a0..7250706ee 100644 --- a/src/diagrams/gantt/ganttDb.js +++ b/src/diagrams/gantt/ganttDb.js @@ -488,6 +488,11 @@ const setClickFun = function(id, functionName, functionArgs) { } } + /* if no arguments passed into callback, default to passing in id */ + if (argList.length === 0) { + argList.push(id); + } + let rawTask = findTaskById(id); if (typeof rawTask !== 'undefined') { pushFun(id, () => {