gantt-task-react-powern 0.4.23 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2798,7 +2798,7 @@ var Gantt = function Gantt(_ref) {
2798
2798
  function colorPath(path, color, tasks) {
2799
2799
  for (var i = 0; i < path.length; i++) {
2800
2800
  for (var j = 0; j < tasks.length; j++) {
2801
- if (path[i].id.startsWith(tasks[j].id + ".")) {
2801
+ if (path[i].id.startsWith(tasks[j].id + ".") || path[i].id === tasks[j].id) {
2802
2802
  var _tasks$j$styles;
2803
2803
 
2804
2804
  var _styles = (_tasks$j$styles = tasks[j].styles) != null ? _tasks$j$styles : {};