Commit d4094ece 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 14a47598
......@@ -538,6 +538,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