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