mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #6409 from okriuchykhin/ok_SCI_9461_v2
Fix file preview presence check in export all job [SCI-9461]
This commit is contained in:
commit
dfe3a5c54b
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ class TeamZipExportJob < ZipExportJob
|
|||
def prepare_preview(asset)
|
||||
if asset.previewable? && !asset.list?
|
||||
preview = asset.inline? ? asset.large_preview : asset.medium_preview
|
||||
return unless preview.processed?
|
||||
return unless preview.image.attached?
|
||||
|
||||
begin
|
||||
file_name = preview.image.filename.to_s
|
||||
|
|
Loading…
Reference in a new issue