fix: PDF display request in v3 (#3878)
Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
1 parent
bf846c94c3
commit
98650302c7
8 files changed
+27
-18
No files matched your search
@@ -37,7 +37,11 @@ const getDirectURL = (config, params) => {
|
||||
}
|
||||
if (!singlepart || (singlepart !== true && singlepart.indexOf(fetchPart) === -1)) {
|
||||
if (value.retrieveBulkData) {
|
||||
return value.retrieveBulkData().then(arr => {
|
||||
// Try the specified retrieve type.
|
||||
const options = {
|
||||
mediaType: defaultType,
|
||||
};
|
||||
return value.retrieveBulkData(options).then(arr => {
|
||||
value.DirectRetrieveURL = URL.createObjectURL(new Blob([arr], { type: defaultType }));
|
||||
return value.DirectRetrieveURL;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user