gent-diagram
Advanced tools
Comparing version 0.3.4 to 0.4.0
@@ -59,5 +59,4 @@ "use strict"; | ||
var getFillColor = function (state, taskId, theme) { | ||
var current = state === null || state === void 0 ? void 0 : state.current; | ||
if (current && current.task === taskId && current.subtask !== 'timeout') { | ||
switch (state.current.status) { | ||
if ((state === null || state === void 0 ? void 0 : state.task) === taskId && (state === null || state === void 0 ? void 0 : state.subtask) !== 'timeout') { | ||
switch (state.status) { | ||
case 'error': | ||
@@ -64,0 +63,0 @@ return theme.taskErrorBackground; |
@@ -37,4 +37,3 @@ "use strict"; | ||
var active = react_1.useMemo(function () { | ||
var current = state === null || state === void 0 ? void 0 : state.current; | ||
if ((current === null || current === void 0 ? void 0 : current.task) === properties.from && (current === null || current === void 0 ? void 0 : current.subtask) === 'timeout') { | ||
if ((state === null || state === void 0 ? void 0 : state.task) === properties.from && (state === null || state === void 0 ? void 0 : state.subtask) === 'timeout') { | ||
return true; | ||
@@ -45,4 +44,3 @@ } | ||
var event = react_1.useMemo(function () { | ||
var _a; | ||
var taskId = (_a = state === null || state === void 0 ? void 0 : state.current) === null || _a === void 0 ? void 0 : _a.task; | ||
var taskId = state === null || state === void 0 ? void 0 : state.task; | ||
if (taskId !== properties.from) { | ||
@@ -49,0 +47,0 @@ return null; |
{ | ||
"name": "gent-diagram", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"description": "Gent diagram visualisation in React", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33092
716