Skip to content

Commit

Permalink
fix(FilesViewer): handle undefined file size while uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
mirekys committed Oct 30, 2024
1 parent 691942e commit 35966e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<td>
<a href="{{ file.links.content }}">{{ file.key }}</a>
</td>
<td>{{ file.size | filesizeformat }}</td>
<td>{{ (file.size or 0) | filesizeformat }}</td>
<td>
{% if file.links.preview %}
<button class="ui button transparent">
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.2.20
version = 5.2.21
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 35966e7

Please sign in to comment.