Skip to content
Snippets Groups Projects
Unverified Commit 3fc3f523 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Do more file to contentUrl refactoring (VPU/Middleware/API#40)

parent 16c97dcf
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ export const findObjectInApiResults = (identifier, results, identifierAttribute ...@@ -20,7 +20,7 @@ export const findObjectInApiResults = (identifier, results, identifierAttribute
}; };
export const getPDFFileBase64Content = (file) => { export const getPDFFileBase64Content = (file) => {
return file.file.replace("data:application/pdf;base64,", ""); return file.contentUrl.replace("data:application/pdf;base64,", "");
}; };
export const convertDataURIToBinary = (dataURI) => { export const convertDataURIToBinary = (dataURI) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment