gantt-task-react-powern 0.4.38 → 0.4.40

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
@@ -375,10 +375,12 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
375
375
  }, tasks.map(function (t) {
376
376
  var expanderSymbol = "";
377
377
 
378
- if (t.hideChildren === false) {
379
- expanderSymbol = "▼";
380
- } else if (t.hideChildren === true) {
381
- expanderSymbol = "►";
378
+ if (t.childrenCount && t.childrenCount > 0) {
379
+ if (t.hideChildren === false) {
380
+ expanderSymbol = "▼";
381
+ } else if (t.hideChildren === true) {
382
+ expanderSymbol = "►";
383
+ }
382
384
  }
383
385
 
384
386
  return React__default.createElement("div", {
@@ -399,7 +401,7 @@ var TaskListTableDefault = function TaskListTableDefault(_ref) {
399
401
  style: {
400
402
  paddingLeft: t.depth * 4 + "px"
401
403
  }
402
- }, React__default.createElement("div", {
404
+ }, t.childrenCount && t.childrenCount > 0 && React__default.createElement("div", {
403
405
  className: styles$1.taskListExpander,
404
406
  onClick: function onClick() {
405
407
  return onExpanderClick(t);
@@ -930,7 +932,7 @@ var Calendar = function Calendar(_ref) {
930
932
  }, bottomValue));
931
933
 
932
934
  if (i + 1 !== dates.length && date.getMonth() !== dates[i + 1].getMonth()) {
933
- var topValue = getLocaleMonth(date, locale);
935
+ var topValue = getLocaleMonth(date, locale) + " " + date.getFullYear();
934
936
  topValues.push(React__default.createElement(TopPartOfCalendar, {
935
937
  key: topValue + date.getFullYear(),
936
938
  value: topValue,