IO-3092 implement backwards compatibility for Cloudinary documents.

This commit is contained in:
Patrick Fic
2025-02-06 14:37:16 -08:00
parent 4d2d9500ff
commit fbb473941c
4 changed files with 24 additions and 29 deletions

View File

@@ -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" });