From feface91419aaf3cee41a9b64db5e321e5bf781d Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 13 Nov 2024 12:15:55 +0100 Subject: [PATCH] Fix restore version in file preview [SCI-11253] --- .../vue/shared/content/attachments/open_locally_menu.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/vue/shared/content/attachments/open_locally_menu.vue b/app/javascript/vue/shared/content/attachments/open_locally_menu.vue index 0db3edd45..e67a39111 100644 --- a/app/javascript/vue/shared/content/attachments/open_locally_menu.vue +++ b/app/javascript/vue/shared/content/attachments/open_locally_menu.vue @@ -131,11 +131,11 @@ export default { document.getElementById('editImageButton').click(); }, refreshPreview() { - const imageElement = document.querySelector('.file-preview-container .asset-image'); + const filePreview = document.querySelector('.file-preview-container'); - if (!imageElement) return; + if (!filePreview) return; - $('#filePreviewModal').modal('hide'); + window.location.reload(); } } };