diff --git a/components/ILIAS/File/classes/Preview/class.ilObjFilePreviewRendererGUI.php b/components/ILIAS/File/classes/Preview/class.ilObjFilePreviewRendererGUI.php index 66a5453ddb60..a9e29f6011a7 100755 --- a/components/ILIAS/File/classes/Preview/class.ilObjFilePreviewRendererGUI.php +++ b/components/ILIAS/File/classes/Preview/class.ilObjFilePreviewRendererGUI.php @@ -293,7 +293,7 @@ private function getAsyncModal(): void $modal = $this->ui_factory->modal()->lightbox($pages); // Send response and end script - $response = $this->http->response()->withBody(Streams::ofString($this->ui_renderer->render($modal))); + $response = $this->http->response()->withBody(Streams::ofString($this->ui_renderer->renderAsync($modal))); $this->http->saveResponse($response); $this->http->sendResponse(); }