@credithub/harlan-components 1.53.2 → 1.53.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.
@@ -23,9 +23,13 @@ var Liminar = function () {
23
23
  var _c = useState(false), hideSection = _c[0], setHideSection = _c[1];
24
24
  useEffect(function () {
25
25
  var _a, _b, _c, _d, _e, _f;
26
+ var processosJuridicosData = (_a = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) !== null && _a !== void 0 ? _a : {
27
+ isLoaded: true,
28
+ empresa: []
29
+ };
26
30
  if (!dataUpdated &&
27
- ((_a = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _a === void 0 ? void 0 : _a.carousel) &&
28
- ((_b = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _b === void 0 ? void 0 : _b.isLoaded)) {
31
+ ((_b = globalData === null || globalData === void 0 ? void 0 : globalData.dossie) === null || _b === void 0 ? void 0 : _b.carousel) &&
32
+ (processosJuridicosData === null || processosJuridicosData === void 0 ? void 0 : processosJuridicosData.isLoaded)) {
29
33
  var empresaNome = globalData.dossie.carousel.name || '';
30
34
  var empresaNomeNormalizado_1 = normalizeName(empresaNome);
31
35
  var processosAtivo = (_e = (_d = (_c = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) === null || _c === void 0 ? void 0 : _c.empresa) === null || _d === void 0 ? void 0 : _d.filter(function (processo) {
@@ -46,7 +50,6 @@ var Liminar = function () {
46
50
  });
47
51
  });
48
52
  var indiciosDeLiminar_1 = false;
49
- // Se o serviço falhou, logar erro
50
53
  if (ctx.type === RequestStatus.Error) {
51
54
  console.error('Erro na requisição de liminares:', ctx.error || 'Erro desconhecido');
52
55
  }
@@ -69,7 +72,6 @@ var Liminar = function () {
69
72
  }, [ctx, dataUpdated, globalData, setData]);
70
73
  if (hideSection)
71
74
  return null;
72
- // Interceptar ctx e substituir por fallback silencioso em caso de erro
73
75
  var fallbackCtx = __assign(__assign({}, ctx), { type: ctx.type === RequestStatus.Error ? RequestStatus.Success : ctx.type, document: ctx.type === RequestStatus.Error
74
76
  ? { indiciosDeLiminar: false }
75
77
  : ctx.document });