diff --git a/app/grandchallenge/components/templatetags/civ.py b/app/grandchallenge/components/templatetags/civ.py index faa6cdebb3..0e09883389 100644 --- a/app/grandchallenge/components/templatetags/civ.py +++ b/app/grandchallenge/components/templatetags/civ.py @@ -25,12 +25,12 @@ def sort_civs(civs: Iterable[ComponentInterfaceValue]): charts.append(v) else: values.append(v) - elif v.file: + elif v.interface.is_file_kind: if v.interface.is_thumbnail_kind: thumbnails.append(v) else: files.append(v) - elif v.image: + elif v.interface.is_image_kind: images.append(v) else: residual.append(v)