IO-3092 implement backwards compatibility for Cloudinary documents.
This commit is contained in:
@@ -118,9 +118,6 @@ function JobsDocumentsComponent({
|
||||
|
||||
const getProxiedUrls = async () => {
|
||||
const result = await axios.post("/media/proxy/thumbnails", { jobid: jobId });
|
||||
|
||||
result.data.forEach((r) => console.log(r.thumbnailUrl));
|
||||
|
||||
let documents = result.data.reduce(
|
||||
(acc, value) => {
|
||||
const fileType = DetermineFileType(value.type);
|
||||
@@ -195,8 +192,8 @@ function JobsDocumentsComponent({
|
||||
};
|
||||
|
||||
// useEffect(() => {
|
||||
// getProxiedUrls();
|
||||
// }, [galleryImages]);
|
||||
// if (data) getProxiedUrls();
|
||||
// }, [data]);
|
||||
|
||||
const hasMediaAccess = HasFeatureAccess({ bodyshop, featureName: "media" });
|
||||
const hasMobileAccess = HasFeatureAccess({ bodyshop, featureName: "mobile" });
|
||||
|
||||
Reference in New Issue
Block a user