Commit 361008e2 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #17057 TIME 0:30 Do not call convertedFile api if no document loaded

parent 9db91140
......@@ -15,6 +15,6 @@
<img src="assets/spinner.gif"/>
</div>
</app-root>
<script src="runtime-es2015.94857ed5d4e94e394ba2.js" type="module"></script><script src="runtime-es5.94857ed5d4e94e394ba2.js" nomodule defer></script><script src="polyfills-es5.c174c1516561194600a5.js" nomodule defer></script><script src="polyfills-es2015.b86be9c6fde12488a69f.js" type="module"></script><script src="scripts.b9f328a06b6423d59d32.js" defer></script><script src="main-es2015.df0bc7d77013a266d47e.js" type="module"></script><script src="main-es5.df0bc7d77013a266d47e.js" nomodule defer></script></body>
<script src="runtime-es2015.94857ed5d4e94e394ba2.js" type="module"></script><script src="runtime-es5.94857ed5d4e94e394ba2.js" nomodule defer></script><script src="polyfills-es5.c174c1516561194600a5.js" nomodule defer></script><script src="polyfills-es2015.b86be9c6fde12488a69f.js" type="module"></script><script src="scripts.b9f328a06b6423d59d32.js" defer></script><script src="main-es2015.1e2bab39f4962639f146.js" type="module"></script><script src="main-es5.1e2bab39f4962639f146.js" nomodule defer></script></body>
</html>
\ No newline at end of file
......@@ -536,6 +536,7 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
}
return data;
}),
filter((data: any) => !this.functions.empty(data.content)),
exhaustMap((data: any) => this.http.post('../rest/convertedFile', { name: `${data.name}.${data.format}`, base64: `${data.content}` })),
tap((data: any) => {
resolve(data.encodedResource);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment