gantt-task-react-powern 0.5.2 → 0.5.3

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.
@@ -2126,7 +2126,7 @@ var Bar = function Bar(_ref) {
2126
2126
  var handleHeight = task.height / 2 - 1;
2127
2127
 
2128
2128
  if (type == "planned") {
2129
- if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0) return React.createElement("g", {
2129
+ if ((task === null || task === void 0 ? void 0 : task.x1) >= 0 && (task === null || task === void 0 ? void 0 : task.x2) >= 0 && task.x2 - task.x1 >= 0) return React.createElement("g", {
2130
2130
  className: styles$6.barWrapper,
2131
2131
  tabIndex: 0
2132
2132
  }, React.createElement(BarDisplay, {
@@ -2174,7 +2174,7 @@ var Bar = function Bar(_ref) {
2174
2174
  className: styles$6.barWrapper,
2175
2175
  tabIndex: 0
2176
2176
  });
2177
- } else if ((task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0) {
2177
+ } else if ((task === null || task === void 0 ? void 0 : task.actualx1) >= 0 && (task === null || task === void 0 ? void 0 : task.actualx2) >= 0 && task.actualx2 - task.actualx1 >= 0) {
2178
2178
  return React.createElement("g", {
2179
2179
  className: styles$6.barWrapper,
2180
2180
  tabIndex: 0