@credithub/harlan-components 1.55.2 → 1.55.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.
|
@@ -24,7 +24,7 @@ var Liminar = function () {
|
|
|
24
24
|
useEffect(function () {
|
|
25
25
|
var _a, _b, _c, _d, _e;
|
|
26
26
|
if (checkCompleted)
|
|
27
|
-
return;
|
|
27
|
+
return;
|
|
28
28
|
var processosJuridicosData = (_a = globalData === null || globalData === void 0 ? void 0 : globalData.processosJuridicosData) !== null && _a !== void 0 ? _a : {
|
|
29
29
|
isLoaded: true,
|
|
30
30
|
empresa: []
|
|
@@ -73,9 +73,6 @@ var Liminar = function () {
|
|
|
73
73
|
setCheckCompleted(true);
|
|
74
74
|
}
|
|
75
75
|
}, [checkCompleted, globalData, ctx, setData]);
|
|
76
|
-
if (checkCompleted && ((_a = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _a === void 0 ? void 0 : _a.message) === 'Não encontrado') {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
76
|
var derivedCtx = useMemo(function () {
|
|
80
77
|
if (!checkCompleted) {
|
|
81
78
|
return __assign(__assign({}, ctx), { type: RequestStatus.Loading });
|
|
@@ -84,6 +81,9 @@ var Liminar = function () {
|
|
|
84
81
|
? { indiciosDeLiminar: false }
|
|
85
82
|
: ctx.document });
|
|
86
83
|
}, [checkCompleted, ctx]);
|
|
84
|
+
if (checkCompleted && ((_a = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _a === void 0 ? void 0 : _a.message) === 'Não encontrado') {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
87
|
return (React.createElement(Section, { title: "Liminares para Remo\u00E7\u00E3o de Protesto", subtitle: "Ind\u00EDcios de liminares para oculta\u00E7\u00E3o de registros.", icon: ProtestosIcon, ctx: derivedCtx, onSuccess: function (doc) {
|
|
88
88
|
var _a;
|
|
89
89
|
var globalMessage = ((_a = globalData === null || globalData === void 0 ? void 0 : globalData.liminar) === null || _a === void 0 ? void 0 : _a.message) || 'Não encontrado';
|