mozrest-sdk-react-dev 0.1.49 → 0.1.51
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/mozrest-sdk.es.js +7 -0
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -94840,7 +94840,9 @@ const WorkingPage = () => {
|
|
|
94840
94840
|
}));
|
|
94841
94841
|
};
|
|
94842
94842
|
const GetVenueListingSummary = async () => {
|
|
94843
|
+
console.log("entro en GetVenueListingSummary");
|
|
94843
94844
|
const data2 = await instance$1.get(`listing/venue-listing-summary`);
|
|
94845
|
+
console.log("salgo de GetVenueListingSummary", data2);
|
|
94844
94846
|
return formatData$6(data2);
|
|
94845
94847
|
};
|
|
94846
94848
|
const formatData$6 = (values) => {
|
|
@@ -94883,6 +94885,7 @@ const singleVenue = async () => {
|
|
|
94883
94885
|
});
|
|
94884
94886
|
};
|
|
94885
94887
|
const redirectToVenueListing = async (data2, navigate) => {
|
|
94888
|
+
console.log("entro en redirectToVenueListing");
|
|
94886
94889
|
if ((data2 == null ? void 0 : data2.total) === 1) {
|
|
94887
94890
|
singleVenue().then((response) => {
|
|
94888
94891
|
navigate(`/venues/${response == null ? void 0 : response.data[0].id}?singleVenue=true`);
|
|
@@ -94899,17 +94902,21 @@ const redirectToVenueListing = async (data2, navigate) => {
|
|
|
94899
94902
|
navigate(`/venues/${lastVenueManaged}?singleVenue=false`);
|
|
94900
94903
|
return;
|
|
94901
94904
|
}
|
|
94905
|
+
return;
|
|
94902
94906
|
};
|
|
94903
94907
|
const Summary = () => {
|
|
94908
|
+
console.log("entro en summary");
|
|
94904
94909
|
const navigate = useNavigate();
|
|
94905
94910
|
const { data: data2, isLoading, error: error3 } = useFetch(GetVenueListingSummary, {
|
|
94906
94911
|
cacheId: "sumary"
|
|
94907
94912
|
});
|
|
94908
94913
|
useEffect(() => {
|
|
94909
94914
|
if (data2) {
|
|
94915
|
+
console.log("entro en useEffect");
|
|
94910
94916
|
redirectToVenueListing(data2, navigate);
|
|
94911
94917
|
}
|
|
94912
94918
|
}, [data2]);
|
|
94919
|
+
return;
|
|
94913
94920
|
};
|
|
94914
94921
|
const GetVenuesSummary = async ({
|
|
94915
94922
|
filters: filters2,
|