diff --git a/oarepo_ui/templates/components/datafields/files/FilesViewer.jinja b/oarepo_ui/templates/components/datafields/files/FilesViewer.jinja
index 075b3702..8cf3954c 100644
--- a/oarepo_ui/templates/components/datafields/files/FilesViewer.jinja
+++ b/oarepo_ui/templates/components/datafields/files/FilesViewer.jinja
@@ -19,7 +19,7 @@
{{ file.key }}
|
- {{ file.size | filesizeformat }} |
+ {{ (file.size or 0) | filesizeformat }} |
{% if file.links.preview %}
|