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 0db3edd45a..e67a39111d 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(); } } };