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