From 0987ddf892b14e2ff38dbd65a7c9f300773f2950 Mon Sep 17 00:00:00 2001
From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr>
Date: Wed, 22 Feb 2023 14:18:03 +0100
Subject: [PATCH] Fix bug when having annotation with no manifests

---
 src/components/AnnotationManifestsAccordion.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/AnnotationManifestsAccordion.js b/src/components/AnnotationManifestsAccordion.js
index 5e6d5ebba..5287697ca 100644
--- a/src/components/AnnotationManifestsAccordion.js
+++ b/src/components/AnnotationManifestsAccordion.js
@@ -107,7 +107,7 @@ export class AnnotationManifestsAccordion extends Component {
 
     const { annotation } = this.state;
 
-    if (annotation.manifests === null) {
+    if (annotation.manifests === null || annotation.manifests.length === 0) {
       return null;
     }
 
-- 
GitLab