@bigbinary/neeto-webhooks-frontend 2.1.0 → 2.1.1

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.
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useRef, useEffect, useCallback } from 'react';
2
2
  import { prop, pluck, assoc, mergeRight } from 'ramda';
3
3
  import { useRouteMatch, useHistory, useParams, Switch as Switch$1, Route } from 'react-router-dom';
4
- import { isNotPresent, isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
4
+ import { isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
5
5
  import { DEFAULT_STALE_TIME, SINGULAR, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
6
6
  import { useQueryParams, useMutationWithInvalidation, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
7
7
  import Container from '@bigbinary/neeto-molecules/Container';
@@ -771,7 +771,7 @@ var Details = function Details(_ref) {
771
771
  isRedelivering = _useRedeliverWebhook.isPending,
772
772
  redeliverWebhook = _useRedeliverWebhook.mutateAsync;
773
773
  var _useShowDelivery = useShowDelivery(deliveryId, webhookSid),
774
- isLoading = _useShowDelivery.isLoading,
774
+ isLoading = _useShowDelivery.isPending,
775
775
  _useShowDelivery$data = _useShowDelivery.data,
776
776
  _useShowDelivery$data2 = _useShowDelivery$data === void 0 ? {} : _useShowDelivery$data,
777
777
  delivery = _useShowDelivery$data2.delivery;
@@ -792,9 +792,6 @@ var Details = function Details(_ref) {
792
792
  return _ref2.apply(this, arguments);
793
793
  };
794
794
  }();
795
- if (isNotPresent(delivery)) {
796
- return null;
797
- }
798
795
  return /*#__PURE__*/jsx(Pane, {
799
796
  onClose: onClose,
800
797
  isOpen: isPresent(deliveryId),
@@ -1702,7 +1699,7 @@ var NeetoWebhooks = function NeetoWebhooks(_ref) {
1702
1699
  }
1703
1700
  }), /*#__PURE__*/jsx(Route, {
1704
1701
  path: deliveriesPath,
1705
- component: function component() {
1702
+ render: function render() {
1706
1703
  return /*#__PURE__*/jsx(Deliveries$1, {
1707
1704
  breadcrumbs: breadcrumbs,
1708
1705
  webhooksUrl: webhooksUrl,