pollination-react-io 1.92.5 → 1.92.6

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/build/index.js CHANGED
@@ -56476,6 +56476,10 @@ var RunCard = function (_a) {
56476
56476
  return undefined;
56477
56477
  return dayjs_min().diff(dayjs_min(run.status.finished_at), 'day');
56478
56478
  }, [run]);
56479
+ // Test for debug purposes
56480
+ React.useEffect(function () {
56481
+ console.log('Days since finished', daysSinceFinished);
56482
+ }, [daysSinceFinished]);
56479
56483
  /**
56480
56484
  * Manage hover effect
56481
56485
  */
@@ -56727,10 +56731,7 @@ var RunCard = function (_a) {
56727
56731
  } },
56728
56732
  React__default["default"].createElement(XOctagon$1, { style: { display: 'inline', margin: '0 5px 0 0' } }),
56729
56733
  " Cancel"),
56730
- React__default["default"].createElement(Button, { style: { marginRight: '0.75rem' }, disabled: !run || !run.status || !daysSinceFinished ||
56731
- ![dist$1.RunStatusEnum.Failed, dist$1.RunStatusEnum.Cancelled].includes(run.status.status) ||
56732
- // Cannot retry runs that are more than 14 days old because the workspace is deleted
56733
- daysSinceFinished >= 14, onClick: function (e) {
56734
+ React__default["default"].createElement(Button, { style: { marginRight: '0.75rem' }, disabled: !run || !run.status || ![dist$1.RunStatusEnum.Failed, dist$1.RunStatusEnum.Cancelled].includes(run.status.status), onClick: function (e) {
56734
56735
  e.stopPropagation();
56735
56736
  if (!run)
56736
56737
  return;